diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-07-10 08:36:39 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-07-10 08:36:39 -0400 |
commit | 2ed34e4f1f9ec8423989d4e9bd7dbada41322cd5 (patch) | |
tree | 6e1b6cc5094ced4c793235e9a0114eb2ac8f3c84 /ui | |
parent | db3fabedb46011224a5a2a1dd300cb954dd61b8d (diff) | |
download | jquery-ui-2ed34e4f1f9ec8423989d4e9bd7dbada41322cd5.tar.gz jquery-ui-2ed34e4f1f9ec8423989d4e9bd7dbada41322cd5.zip |
Menu: Cleanup from 019dcc26e307614681a6dfd0fcd9665548cb6ab6.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.menu.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 923421e52..52c421c7a 100644 --- a/ui/jquery.ui.menu.js +++ b/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 ); }, |