Skip to content
Permalink
Browse files

Autocomplete: Pass along some more original events.

  • Loading branch information...
scottgonzalez committed Oct 11, 2010
1 parent 03efae2 commit da13ea26fec7e21f9cd6566e99b7fd6688b5e96e
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit da13ea2

Please sign in to comment.
You can’t perform that action at this time.