aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.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/ajax.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/ajax.js')
-rw-r--r--test/unit/ajax.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 79f410406..a0a2abf4a 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -1585,13 +1585,13 @@ module( "ajax", {
type: "POST"
});
- jQuery( document ).bind( "ajaxStart ajaxStop", function() {
+ jQuery( document ).on( "ajaxStart ajaxStop", function() {
ok( false, "Global event triggered" );
});
jQuery("#qunit-fixture").append("<script src='data/evalScript.php'></script>");
- jQuery( document ).unbind("ajaxStart ajaxStop");
+ jQuery( document ).off("ajaxStart ajaxStop");
});
asyncTest( "#11402 - jQuery.domManip() - script in comments are properly evaluated", 2, function() {
@@ -1845,7 +1845,7 @@ module( "ajax", {
});
jQuery( document ).ajaxComplete(function( e, xml, s ) {
strictEqual( s.dataType, "html", "Verify the load() dataType was html" );
- jQuery( document ).unbind("ajaxComplete");
+ jQuery( document ).off("ajaxComplete");
start();
});
jQuery("#first").load("data/test3.html");