Permalink
Browse files

Selectmenu: rename _setSelected to _setAria

  • Loading branch information...
1 parent 3a17a91 commit 9719719e60f39b24142e79daf4e60238b34d62a0 @fnagel fnagel committed Feb 9, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.selectmenu.js
@@ -177,7 +177,7 @@ $.widget( "ui.selectmenu", {
item = this._getSelectedItem();
// make sure menu is selected item aware
this.menu.menu( "focus", null, item );
- this._setSelected( item.data( "ui-selectmenu-item" ) );
+ this._setAria( item.data( "ui-selectmenu-item" ) );
// set disabled state
this._setOption( "disabled", this._getCreateOptions().disabled );
@@ -365,15 +365,15 @@ $.widget( "ui.selectmenu", {
// change native select element
this.element[ 0 ].selectedIndex = item.index;
this._setText( this.buttonText, item.label );
- this._setSelected( item );
+ this._setAria( item );
this._trigger( "select", event, { item: item } );
if ( item.index !== oldIndex ) {
this._trigger( "change", event, { item: item } );
}
},
- _setSelected: function( item ) {
+ _setAria: function( item ) {
// change ARIA attr
this.menuItems.find( "a" ).attr( "aria-selected", false );
this.menuItems.eq( item.index ).find( "a" ).attr( "aria-selected", true );

0 comments on commit 9719719

Please sign in to comment.