]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: rename var to focusIndex
authorFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 20:15:50 +0000 (22:15 +0200)
committerFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 20:15:50 +0000 (22:15 +0200)
ui/jquery.ui.selectmenu.js

index ae910f8c99fb8e6a26665b02b135216c76e26a4e..3d0d9e378984a0337718ed00c777e7eea787eadc 100644 (file)
@@ -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" ) );