aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-04-29 22:15:50 +0200
committerFelix Nagel <info@felixnagel.com>2013-04-29 22:15:50 +0200
commit0631d7666f908fadf26653742ebc5d4099dd5b85 (patch)
tree516c0da57930762edc9265a3451e3452cdbf5744 /ui/jquery.ui.selectmenu.js
parent5e9ad9b434b867ba7339a87c35c2d1cf96e5c005 (diff)
downloadjquery-ui-0631d7666f908fadf26653742ebc5d4099dd5b85.tar.gz
jquery-ui-0631d7666f908fadf26653742ebc5d4099dd5b85.zip
Selectmenu: rename var to focusIndex
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r--ui/jquery.ui.selectmenu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index ae910f8c9..3d0d9e378 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -135,13 +135,13 @@ $.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.isOpen && that.focus !== undefined && item.index !== that.focus ) {
+ if ( !that.isOpen && that.focusIndex !== undefined && item.index !== that.focusIndex ) {
that._trigger( "focus", event, { item: item } );
if ( !that.isOpen ) {
that._select( item, event );
}
}
- that.focus = item.index;
+ that.focusIndex = item.index;
// Set ARIA active descendant
that.button.attr( "aria-activedescendant", that.menuItems.eq( item.index ).attr( "id" ) );