diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-04-25 14:04:30 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-04-25 14:04:30 -0400 |
commit | 325ee6e87133dd2a507c820dd3c356e3b897a3ec (patch) | |
tree | c13ef9ce107caf181f300cb0ab2a6d5214aada87 /tests/unit/widget | |
parent | c4c36e557ef2b3450bc365708064f7314bc6fdc4 (diff) | |
download | jquery-ui-325ee6e87133dd2a507c820dd3c356e3b897a3ec.tar.gz jquery-ui-325ee6e87133dd2a507c820dd3c356e3b897a3ec.zip |
Widget: define a null default for the create callback.
Diffstat (limited to 'tests/unit/widget')
-rw-r--r-- | tests/unit/widget/widget_core.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js index 5a6717560..b1c27b104 100644 --- a/tests/unit/widget/widget_core.js +++ b/tests/unit/widget/widget_core.js @@ -202,6 +202,7 @@ test( "merge multiple option arguments", function() { $.widget( "ui.testWidget", { _create: function() { same( this.options, { + create: null, disabled: false, option1: "value1", option2: "value2", @@ -249,6 +250,7 @@ test( "._getCreateOptions()", function() { }, _create: function() { same( this.options, { + create: null, disabled: false, option1: "override1", option2: "value2", @@ -418,6 +420,7 @@ test( ".option() - getter", function() { var options = div.testWidget( "option" ); same( options, { + create: null, disabled: false, foo: "bar", baz: 5, |