r3096 committed - autocomplete: Fix to trigger result callback (with no data) when mustM...
Revision: 3096
Author: joern.zaefferer
Date: Thu Aug 20 11:37:48 2009
Log: autocomplete: Fix to trigger result callback (with no data) when
mustMatch is true and no value was selecting (what the user entered was
removed)
http://code.google.com/p/jquery-ui/source/detail?r=3096
Modified:
/branches/dev/autocomplete/ui/ui.autocomplete.js
=======================================
--- /branches/dev/autocomplete/ui/ui.autocomplete.js Thu Aug 20 11:37:30
2009
+++ /branches/dev/autocomplete/ui/ui.autocomplete.js Thu Aug 20 11:37:48
2009
@@ -283,8 +283,10 @@
var words = trimWords($input.val()).slice(0, -1);
$input.val( words.join(options.multipleSeparator) +
(words.length ? options.multipleSeparator : "") );
}
- else
+ else {
$input.val( "" );
+ $input.trigger("result", null);
+ }
}
}
);