aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.autocomplete.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-10-11 08:51:54 -0400
committerScott González <scott.gonzalez@gmail.com>2010-10-11 08:51:54 -0400
commitda13ea26fec7e21f9cd6566e99b7fd6688b5e96e (patch)
tree448966bf11cf3aa30a8e55a44688045c318b1cfc /ui/jquery.ui.autocomplete.js
parent03efae28873822a1b753a3ce22e8d5945c9832ce (diff)
downloadjquery-ui-da13ea26fec7e21f9cd6566e99b7fd6688b5e96e.tar.gz
jquery-ui-da13ea26fec7e21f9cd6566e99b7fd6688b5e96e.zip
Autocomplete: Pass along some more original events.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r--ui/jquery.ui.autocomplete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 8b41a24dc..f9607aef7 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -157,7 +157,7 @@ $.widget( "ui.autocomplete", {
.menu({
focus: function( event, ui ) {
var item = ui.item.data( "item.autocomplete" );
- if ( false !== self._trigger( "focus", null, { item: item } ) ) {
+ if ( false !== self._trigger( "focus", event, { item: item } ) ) {
// use value to match what will end up in the input, if it was a key event
if ( /^key/.test(event.originalEvent.type) ) {
self.element.val( item.value );
@@ -266,7 +266,7 @@ $.widget( "ui.autocomplete", {
}
clearTimeout( this.closing );
- if ( this._trigger("search") === false ) {
+ if ( this._trigger( "search", event ) === false ) {
return;
}