Skip to content
Permalink
Browse files

Menu: Cleanup from 019dcc2.

  • Loading branch information
scottgonzalez committed Jul 10, 2012
1 parent db3fabe commit 2ed34e4f1f9ec8423989d4e9bd7dbada41322cd5
Showing with 1 addition and 5 deletions.
  1. +1 −5 ui/jquery.ui.menu.js
@@ -101,13 +101,9 @@ $.widget( "ui.menu", {
mouseleave: "collapseAll",
"mouseleave .ui-menu": "collapseAll",
focus: function( event ) {
var menuTop,
item,
menu = this.element;

// If there's already an active item, keep it active
// If not, activate the first item
item = this.active || menu.children( ".ui-menu-item" ).eq( 0 );
var item = this.active || this.element.children( ".ui-menu-item" ).eq( 0 );

this.focus( event, item );
},

0 comments on commit 2ed34e4

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