r3386 committed - cleanup
Revision: 3386
Author: joern.zaefferer
Date: Fri Oct 23 08:18:50 2009
Log: cleanup
http://code.google.com/p/jquery-ui/source/detail?r=3386
Modified:
/branches/dev/ui/jquery.ui.autocomplete.js
=======================================
--- /branches/dev/ui/jquery.ui.autocomplete.js Thu Oct 22 12:17:04 2009
+++ /branches/dev/ui/jquery.ui.autocomplete.js Fri Oct 23 08:18:50 2009
@@ -18,7 +18,6 @@
this.element.attr("autocomplete", "off").addClass("ui-autocomplete")
// TODO verify these actually work as intended
.attr("role", "textbox").attr("aria-autocomplete", "list").attr("aria-haspopup", "true")
- // keyup is triggered only once when hold down, keypress multiple times
.keydown(function(event) {
switch(event.keyCode) {
case $.ui.keyCode.PAGE_UP:
@@ -69,6 +68,7 @@
if ($.isArray(this.options.source)) {
var array = this.options.source;
this.source = function(request, response) {
+ // TODO escape regex characters
var matcher = new RegExp(request.term, "i");
return $.grep(array, function(value) {
return matcher.test(value)