diff options
author | Felix Nagel <info@felixnagel.com> | 2013-02-09 03:24:50 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-02-09 03:24:50 +0100 |
commit | 9719719e60f39b24142e79daf4e60238b34d62a0 (patch) | |
tree | 7330bdf5bc5b188e3e56704f8c85f7b84cdc7748 | |
parent | 3a17a91f3001953418110b0417e195a7405d8d22 (diff) | |
download | jquery-ui-9719719e60f39b24142e79daf4e60238b34d62a0.tar.gz jquery-ui-9719719e60f39b24142e79daf4e60238b34d62a0.zip |
Selectmenu: rename _setSelected to _setAria
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 9055e2a0d..e26850c2c 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/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,7 +365,7 @@ $.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 ) { @@ -373,7 +373,7 @@ $.widget( "ui.selectmenu", { } }, - _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 ); |