Skip to content
Permalink
Browse files

Selectmenu: rename var to focusIndex

  • Loading branch information...
fnagel committed Apr 29, 2013
1 parent 5e9ad9b commit 0631d7666f908fadf26653742ebc5d4099dd5b85
Showing with 2 additions and 2 deletions.
  1. +2 −2 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" ) );

0 comments on commit 0631d76

Please sign in to comment.
You can’t perform that action at this time.