]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: simplify tabindex attribute setting on button create
authorFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 20:04:56 +0000 (22:04 +0200)
committerFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 20:04:56 +0000 (22:04 +0200)
ui/jquery.ui.selectmenu.js

index bc9ab61f5b281112b493ad072e2b19b387550c31..3533579e299dfede2f4b0198733c2166dbb6c1b1 100644 (file)
@@ -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",