diff options
author | Felix Nagel <info@felixnagel.com> | 2013-09-25 22:30:13 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-09-25 22:30:13 +0200 |
commit | b80681c74ec8e82e17b4827f249476e1923a0a05 (patch) | |
tree | 9bdfe1fcd1fb0cf04b034134afcf6c8c409955ac | |
parent | 12dba998f18cef1d77b4e90249476cf64498d734 (diff) | |
download | jquery-ui-b80681c74ec8e82e17b4827f249476e1923a0a05.tar.gz jquery-ui-b80681c74ec8e82e17b4827f249476e1923a0a05.zip |
Selectmenu: remove unneeded variable usage
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 4 |
1 files changed, 1 insertions, 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" ); |