]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: Default disabled option to null
authorScott González <scott.gonzalez@gmail.com>
Mon, 21 Apr 2014 14:32:49 +0000 (10:32 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 21 Apr 2014 14:32:49 +0000 (10:32 -0400)
tests/unit/selectmenu/selectmenu_common.js
ui/selectmenu.js

index 93b526bd82bb4ed4b8ae39de7cac06e4ba2cfe41..10073fe97beb418f08fa6d9a41157f9cf87e9c10 100644 (file)
@@ -1,7 +1,7 @@
 TestHelpers.commonWidgetTests( "selectmenu", {
        defaults: {
                appendTo: null,
-               disabled: false,
+               disabled: null,
                icons: {
                        button: "ui-icon-triangle-1-s"
                },
@@ -13,9 +13,9 @@ TestHelpers.commonWidgetTests( "selectmenu", {
                width: null,
 
                // callbacks
-               create: null,
                change: null,
                close: null,
+               create: null,
                focus: null,
                open: null,
                select: null
index 7fc2119cb16f192fc33091db3c23d3af07f35b5d..2107285fe36a8bb48331ec6f72d7ee4a1b6aaef7 100644 (file)
@@ -31,6 +31,7 @@ return $.widget( "ui.selectmenu", {
        defaultElement: "<select>",
        options: {
                appendTo: null,
+               disabled: null,
                icons: {
                        button: "ui-icon-triangle-1-s"
                },