diff options
author | Felix Nagel <info@felixnagel.com> | 2012-02-24 22:48:52 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-02-24 22:50:27 +0100 |
commit | b356e1e4e19abb5cbc97350d29d954e3a7ebd4b6 (patch) | |
tree | 0045279cfd4709351dcc8cee81a52ba5f4cd8970 /ui/jquery.ui.selectmenu.js | |
parent | 058cba236f5f599b349cd51970bbce289f16b549 (diff) | |
download | jquery-ui-b356e1e4e19abb5cbc97350d29d954e3a7ebd4b6.tar.gz jquery-ui-b356e1e4e19abb5cbc97350d29d954e3a7ebd4b6.zip |
Selectmenu: selected callback event fired twice when using mouse
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index c9aac2444..fbb90662e 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -140,9 +140,9 @@ $.widget( "ui.selectmenu", { if ( that.focus !== undefined ) { if ( item.index != that.focus ) { that._trigger( "focus", event, { item: item } ); - } - if ( !that.isOpen ) { - that._select( item, event ); + if ( !that.isOpen ) { + that._select( item, event ); + } } } that.focus = item.index; |