aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-10-22 12:27:37 -0400
committerScott González <scott.gonzalez@gmail.com>2014-10-22 12:27:37 -0400
commit1fb08790a6cae0ac861df0373a303d72ed0e8d71 (patch)
treefc2b192e4f0b4c201597b0ab10b7b67020d5361d /ui
parent2159e0446c03fd19cc942d9e141c6df70c610833 (diff)
downloadjquery-ui-1fb08790a6cae0ac861df0373a303d72ed0e8d71.tar.gz
jquery-ui-1fb08790a6cae0ac861df0373a303d72ed0e8d71.zip
Selectmenu: Remove broken tabindex code
Diffstat (limited to 'ui')
-rw-r--r--ui/selectmenu.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/selectmenu.js b/ui/selectmenu.js
index 26456b0dc..14c81efee 100644
--- a/ui/selectmenu.js
+++ b/ui/selectmenu.js
@@ -67,8 +67,7 @@ return $.widget( "ui.selectmenu", {
},
_drawButton: function() {
- var that = this,
- tabindex = this.element.attr( "tabindex" );
+ var that = this;
// Associate existing label with the new button
this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button );
@@ -85,7 +84,7 @@ return $.widget( "ui.selectmenu", {
// Create button
this.button = $( "<span>", {
"class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all",
- tabindex: tabindex || this.options.disabled ? -1 : 0,
+ tabindex: this.options.disabled ? -1 : 0,
id: this.ids.button,
role: "combobox",
"aria-expanded": "false",