From b80681c74ec8e82e17b4827f249476e1923a0a05 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Wed, 25 Sep 2013 22:30:13 +0200 Subject: [PATCH] Selectmenu: remove unneeded variable usage --- ui/jquery.ui.selectmenu.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 2a66ac6a3..281674455 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -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" ); -- 2.39.5