aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-05-30 21:25:15 +0200
committerFelix Nagel <info@felixnagel.com>2013-05-30 21:25:15 +0200
commit7be7d96ee205605279f8305d399c4b1e91b59c51 (patch)
tree83974e34598215e695dc2b14bc047872472b8fea /ui/jquery.ui.selectmenu.js
parente7d200f308f477a39dc4dfce5ee693143fb5602f (diff)
downloadjquery-ui-7be7d96ee205605279f8305d399c4b1e91b59c51.tar.gz
jquery-ui-7be7d96ee205605279f8305d399c4b1e91b59c51.zip
Selectmenu: use that.focusIndex != null instead of !== undefined when checking first focus event
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r--ui/jquery.ui.selectmenu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index 7cc8b9191..d37f50b17 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -133,7 +133,7 @@ $.widget( "ui.selectmenu", {
var item = ui.item.data( "ui-selectmenu-item" );
// prevent inital focus from firing and checks if its a newly focused item
- if ( that.focusIndex !== undefined && item.index !== that.focusIndex ) {
+ if ( that.focusIndex != null && item.index !== that.focusIndex ) {
that._trigger( "focus", event, { item: item } );
if ( !that.isOpen ) {
that._select( item, event );