aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-02-09 03:24:50 +0100
committerFelix Nagel <info@felixnagel.com>2013-02-09 03:24:50 +0100
commit9719719e60f39b24142e79daf4e60238b34d62a0 (patch)
tree7330bdf5bc5b188e3e56704f8c85f7b84cdc7748
parent3a17a91f3001953418110b0417e195a7405d8d22 (diff)
downloadjquery-ui-9719719e60f39b24142e79daf4e60238b34d62a0.tar.gz
jquery-ui-9719719e60f39b24142e79daf4e60238b34d62a0.zip
Selectmenu: rename _setSelected to _setAria
-rw-r--r--ui/jquery.ui.selectmenu.js6
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 );