diff options
author | kborchers <kris.borchers@gmail.com> | 2011-12-23 09:48:14 -0600 |
---|---|---|
committer | kborchers <kris.borchers@gmail.com> | 2011-12-23 09:48:14 -0600 |
commit | f0007ec74526979837c93be13bf181b3cf57c2ce (patch) | |
tree | b9ae7e4c217d845eb6c7fa70bb19aafa42ed8d99 /ui/jquery.ui.autocomplete.js | |
parent | c88add2269c195513b1127d4e6842373fb9f6e60 (diff) | |
download | jquery-ui-f0007ec74526979837c93be13bf181b3cf57c2ce.tar.gz jquery-ui-f0007ec74526979837c93be13bf181b3cf57c2ce.zip |
Menu: Change first() and last() to isFirstItem() and isLastItem()
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 bd415aa2b..c054ba2dd 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -473,8 +473,8 @@ $.widget( "ui.autocomplete", { this.search( null, event ); return; } - if ( this.menu.first() && /^previous/.test(direction) || - this.menu.last() && /^next/.test(direction) ) { + if ( this.menu.isFirstItem() && /^previous/.test(direction) || + this.menu.isLastItem() && /^next/.test(direction) ) { this._value( this.term ); this.menu.blur(); return; |