diff options
author | Felix Nagel <info@felixnagel.com> | 2012-12-03 23:19:15 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-12-03 23:19:15 +0100 |
commit | aa60a9e1149f85e7a8c35c43bc0ce5f2feab25eb (patch) | |
tree | a92afbbadcd6f14db19d27234acf4628337b6370 /ui/jquery.ui.selectmenu.js | |
parent | 40b8567526ad790fb31d03ee43588a226551dbc8 (diff) | |
download | jquery-ui-aa60a9e1149f85e7a8c35c43bc0ce5f2feab25eb.tar.gz jquery-ui-aa60a9e1149f85e7a8c35c43bc0ce5f2feab25eb.zip |
Selectmenu: use item.index instead of _getSelectedItem method
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index d97b52387..83407ec09 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -389,7 +389,7 @@ $.widget( "ui.selectmenu", { this.buttonText.html( item.label ); // change ARIA attr this.menuItems.find( "a" ).attr( "aria-selected", false ); - this._getSelectedItem().find( "a" ).attr( "aria-selected", true ); + this.menuItems.eq( item.index ).find( "a" ).attr( "aria-selected", true ); this.button.attr( "aria-labelledby", this.menuItems.eq( item.index ).find( "a" ).attr( "id" ) ); }, |