]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: remove unneeded variable usage
authorFelix Nagel <info@felixnagel.com>
Wed, 25 Sep 2013 20:30:13 +0000 (22:30 +0200)
committerFelix Nagel <info@felixnagel.com>
Wed, 25 Sep 2013 20:30:13 +0000 (22:30 +0200)
ui/jquery.ui.selectmenu.js

index 2a66ac6a3ab7607000be3e96283654773b2afb4c..28167445553a21b66ac95d74fca498a0b42144f2 100644 (file)
@@ -120,10 +120,8 @@ $.widget( "ui.selectmenu", {
                this.menuInstance = this.menu.menu({
                        role: "listbox",
                        select: function( event, ui ) {
-                               var item = ui.item.data( "ui-selectmenu-item" );
-
                                event.preventDefault();                         
-                               that._select( item, event );
+                               that._select( ui.item.data( "ui-selectmenu-item" ), event );
                        },
                        focus: function( event, ui ) {
                                var item = ui.item.data( "ui-selectmenu-item" );