diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-11-09 13:28:13 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-11-09 13:28:13 -0500 |
commit | f5870712c1f73c474a6980bb16d12768f4150984 (patch) | |
tree | 908c260e0e03ac398cbc1398606e73221058ee2b /tests/unit/dialog/dialog_events.js | |
parent | 498aadf644ddca86de838dc2001267ded972df2c (diff) | |
download | jquery-ui-f5870712c1f73c474a6980bb16d12768f4150984.tar.gz jquery-ui-f5870712c1f73c474a6980bb16d12768f4150984.zip |
Updated all widgets to use proper data keys when getting plugin instances.
Diffstat (limited to 'tests/unit/dialog/dialog_events.js')
-rw-r--r-- | tests/unit/dialog/dialog_events.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/dialog/dialog_events.js b/tests/unit/dialog/dialog_events.js index c5090d8f6..ee7a8bcb3 100644 --- a/tests/unit/dialog/dialog_events.js +++ b/tests/unit/dialog/dialog_events.js @@ -11,7 +11,7 @@ test("open", function() { var el = $("<div></div>"); el.dialog({ open: function(ev, ui) { - ok(el.data("dialog")._isOpen, "interal _isOpen flag is set"); + ok(el.data("ui-dialog")._isOpen, "interal _isOpen flag is set"); ok(true, 'autoOpen: true fires open callback'); equal(this, el[0], "context of callback"); equal(ev.type, 'dialogopen', 'event type in callback'); @@ -30,7 +30,7 @@ test("open", function() { deepEqual(ui, {}, 'ui hash in callback'); } }).bind('dialogopen', function(ev, ui) { - ok(el.data("dialog")._isOpen, "interal _isOpen flag is set"); + ok(el.data("ui-dialog")._isOpen, "interal _isOpen flag is set"); ok(true, 'dialog("open") fires open event'); equal(this, el[0], 'context of event'); deepEqual(ui, {}, 'ui hash in event'); |