diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-03-19 16:53:35 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-03-19 16:53:35 +0100 |
commit | 90135b27f896506776f3ce9fdbd27c9e957b924a (patch) | |
tree | 11591919e5083e81b8288cb979eca7fbdf3e3dd6 /tests/unit/dialog/dialog_events.js | |
parent | 4fce29e9356d7cbe2ccbdc29a391603580e852de (diff) | |
download | jquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.tar.gz jquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.zip |
Widget tests: Use instance method. Also replace a few instances of $.data in widget implementations.
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 7bcd5673e..1384500f6 100644 --- a/tests/unit/dialog/dialog_events.js +++ b/tests/unit/dialog/dialog_events.js @@ -11,7 +11,7 @@ test("open", function() { var element = $("<div></div>"); element.dialog({ open: function(ev, ui) { - ok(element.data("ui-dialog")._isOpen, "interal _isOpen flag is set"); + ok(element.dialog( "instance" )._isOpen, "interal _isOpen flag is set"); ok(true, "autoOpen: true fires open callback"); equal(this, element[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(element.data("ui-dialog")._isOpen, "interal _isOpen flag is set"); + ok(element.dialog( "instance" )._isOpen, "interal _isOpen flag is set"); ok(true, "dialog('open') fires open event"); equal(this, element[0], "context of event"); deepEqual(ui, {}, "ui hash in event"); |