From a716261ab68536f3b22e994137c8b35b5a15a71b Mon Sep 17 00:00:00 2001 From: Scott González Date: Sat, 11 Jul 2009 00:36:36 +0000 Subject: Dialog: Changed beforeclose option to beforeClose. Fixes #4669 - Dialog: beforeclose option should be beforeClose. --- tests/unit/dialog/dialog_events.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/unit/dialog/dialog_events.js b/tests/unit/dialog/dialog_events.js index 805bbd535..70bf434b7 100644 --- a/tests/unit/dialog/dialog_events.js +++ b/tests/unit/dialog/dialog_events.js @@ -186,12 +186,12 @@ test("close", function() { el.remove(); }); -test("beforeclose", function() { +test("beforeClose", function() { expect(9); el = $('
').dialog({ - beforeclose: function(ev, ui) { - ok(true, '.dialog("close") fires beforeclose callback'); + beforeClose: function(ev, ui) { + ok(true, '.dialog("close") fires beforeClose callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogbeforeclose', 'event type in callback'); same(ui, {}, 'ui hash in callback'); @@ -199,7 +199,7 @@ test("beforeclose", function() { } }); el.dialog('close'); - isOpen('beforeclose callback should prevent dialog from closing'); + isOpen('beforeClose callback should prevent dialog from closing'); el.remove(); el = $('
').dialog().bind('dialogbeforeclose', function(ev, ui) { -- cgit v1.2.3