aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/widget
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-04-25 14:04:30 -0400
committerScott González <scott.gonzalez@gmail.com>2011-04-25 14:04:30 -0400
commit325ee6e87133dd2a507c820dd3c356e3b897a3ec (patch)
treec13ef9ce107caf181f300cb0ab2a6d5214aada87 /tests/unit/widget
parentc4c36e557ef2b3450bc365708064f7314bc6fdc4 (diff)
downloadjquery-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.js3
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,