diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-18 15:34:47 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-18 15:34:47 -0400 |
commit | 0adc6f5e17593d6bd42e6c0586eb85000883dec3 (patch) | |
tree | c63230462766a5fe70b5d19bb633d493062717a9 /ui/jquery.ui.autocomplete.js | |
parent | ba1776a5133ae15d8db9eee86a4082fb017f65aa (diff) | |
download | jquery-ui-0adc6f5e17593d6bd42e6c0586eb85000883dec3.tar.gz jquery-ui-0adc6f5e17593d6bd42e6c0586eb85000883dec3.zip |
Menu: Remove need to pass an event for next(), previous(), focus().
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 1fc01d7a4..8ab48ba03 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -225,7 +225,7 @@ $.widget( "ui.autocomplete", { var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" ); if ( false !== this._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) ) { + if ( event.originalEvent && /^key/.test(event.originalEvent.type) ) { this._value( item.value ); } } else { @@ -468,7 +468,7 @@ $.widget( "ui.autocomplete", { }, this.options.position )); if ( this.options.autoFocus ) { - this.menu.next( new $.Event("mouseover") ); + this.menu.next(); } }, |