aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorkborchers <kris.borchers@gmail.com>2011-12-23 09:48:14 -0600
committerkborchers <kris.borchers@gmail.com>2011-12-23 09:48:14 -0600
commitf0007ec74526979837c93be13bf181b3cf57c2ce (patch)
treeb9ae7e4c217d845eb6c7fa70bb19aafa42ed8d99 /ui/jquery.ui.menu.js
parentc88add2269c195513b1127d4e6842373fb9f6e60 (diff)
downloadjquery-ui-f0007ec74526979837c93be13bf181b3cf57c2ce.tar.gz
jquery-ui-f0007ec74526979837c93be13bf181b3cf57c2ce.zip
Menu: Change first() and last() to isFirstItem() and isLastItem()
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r--ui/jquery.ui.menu.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index c5d4fd3aa..4fac02d2a 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -447,11 +447,11 @@ $.widget( "ui.menu", {
this._move( "prev", "last", event );
},
- first: function() {
+ isFirstItem: function() {
return this.active && !this.active.prevAll( ".ui-menu-item" ).length;
},
- last: function() {
+ isLastItem: function() {
return this.active && !this.active.nextAll( ".ui-menu-item" ).length;
},
@@ -480,7 +480,7 @@ $.widget( "ui.menu", {
this.focus( event, this.activeMenu.children( ".ui-menu-item" ).first() );
return;
}
- if ( this.last() ) {
+ if ( this.isLastItem() ) {
return;
}
if ( this._hasScroll() ) {
@@ -504,7 +504,7 @@ $.widget( "ui.menu", {
this.focus( event, this.activeMenu.children( ".ui-menu-item" ).first() );
return;
}
- if ( this.first() ) {
+ if ( this.isFirstItem() ) {
return;
}
if ( this._hasScroll() ) {