aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/data.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-03-04 03:22:11 +0100
committerDave Methvin <dave.methvin@gmail.com>2013-03-25 22:06:49 -0400
commit8ca9f931ec311b6f73990eac7665451a28bceac3 (patch)
treedf27c7a4d92ebbf1225094a5541cff579814019d /test/unit/data.js
parentf2cb536127952a30a1b7edc34765e9e1313145e9 (diff)
downloadjquery-8ca9f931ec311b6f73990eac7665451a28bceac3.tar.gz
jquery-8ca9f931ec311b6f73990eac7665451a28bceac3.zip
bind/unbind changed to on/off in unit tests; refs #13554
Diffstat (limited to 'test/unit/data.js')
-rw-r--r--test/unit/data.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/data.js b/test/unit/data.js
index b308171b5..d813ec82d 100644
--- a/test/unit/data.js
+++ b/test/unit/data.js
@@ -133,7 +133,7 @@ test("jQuery.data({})", 25, function() {
test("jQuery.data(window)", 25, function() {
// remove bound handlers from window object to stop potential false positives caused by fix for #5280 in
// transports/xhr.js
- jQuery(window).unbind("unload");
+ jQuery(window).off("unload");
dataTests(window);
});
@@ -635,7 +635,7 @@ test(".removeData should not throw exceptions. (#10080)", function() {
expect(1);
stop();
var frame = jQuery("#loadediframe");
- jQuery(frame[0].contentWindow).bind("unload", function() {
+ jQuery(frame[0].contentWindow).on("unload", function() {
ok(true, "called unload");
start();
});