diff options
author | Felix Nagel <info@felixnagel.com> | 2013-04-29 22:04:56 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-04-29 22:04:56 +0200 |
commit | b84cd7e686c0e3cd924dbe48eada7de53ed09750 (patch) | |
tree | 25157bd03f4be914b6cc212602004b5650c0c3c0 /ui | |
parent | 68c7485ed938473011e0e041ffb65b7c0f9615a2 (diff) | |
download | jquery-ui-b84cd7e686c0e3cd924dbe48eada7de53ed09750.tar.gz jquery-ui-b84cd7e686c0e3cd924dbe48eada7de53ed09750.zip |
Selectmenu: simplify tabindex attribute setting on button create
Diffstat (limited to 'ui')
-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 bc9ab61f5..3533579e2 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -74,7 +74,7 @@ $.widget( "ui.selectmenu", { // Create button this.button = $( "<span>", { "class": "ui-selectmenu-button ui-widget ui-state-default ui-corner-all", - tabindex: ( tabindex ? tabindex : this.options.disabled ? -1 : 0 ), + tabindex: tabindex || this.options.disabled ? -1 : 0, id: this.ids.button, width: this.element.outerWidth(), role: "combobox", |