Skip to content
Permalink
Browse files

Menu: Make sure the next element is defined in addition to checking l…

…ength != 0
  • Loading branch information
kborchers committed Feb 6, 2012
1 parent 3ef4db2 commit 1cd26fc759c177647203a7c36ddc6326a0c9221f
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.menu.js
@@ -455,7 +455,7 @@ $.widget( "ui.menu", {
next = this.active[ direction + "All" ]( ".ui-menu-item" ).not( ".ui-state-disabled" ).eq( 0 );
}
}
if ( !next.length || !this.active ) {
if ( !next || !next.length || !this.active ) {
next = this.activeMenu.children( ".ui-menu-item" )[ filter ]();
}

0 comments on commit 1cd26fc

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