Skip to content

Commit 2ed34e4

Browse files
committed
Menu: Cleanup from 019dcc2.
1 parent db3fabe commit 2ed34e4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ui/jquery.ui.menu.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,9 @@ $.widget( "ui.menu", {
101101
mouseleave: "collapseAll",
102102
"mouseleave .ui-menu": "collapseAll",
103103
focus: function( event ) {
104-
var menuTop,
105-
item,
106-
menu = this.element;
107-
108104
// If there's already an active item, keep it active
109105
// If not, activate the first item
110-
item = this.active || menu.children( ".ui-menu-item" ).eq( 0 );
106+
var item = this.active || this.element.children( ".ui-menu-item" ).eq( 0 );
111107

112108
this.focus( event, item );
113109
},

0 commit comments

Comments
 (0)