aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
diff options
context:
space:
mode:
authorVeaceslav Grimalschi <grimalschi@yandex.ru>2014-10-08 15:24:55 +0400
committerDave Methvin <dave.methvin@gmail.com>2014-12-07 21:31:39 -0500
commitef93f9545263f3ed456367506ac7226c921cd243 (patch)
tree93d9cad7f0b7319abd2f855c13f3b01550627663 /test/unit/event.js
parent61df64865116ea4eac8b4f6da393ba4670f26103 (diff)
downloadjquery-ef93f9545263f3ed456367506ac7226c921cd243.tar.gz
jquery-ef93f9545263f3ed456367506ac7226c921cd243.zip
Event: Fully clean up events in unit test
Closes gh-1685 (cherry picked from commit 4467ed606ab0a9b28ed495e682576910937fa5e0)
Diffstat (limited to 'test/unit/event.js')
-rw-r--r--test/unit/event.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index fb3b75abc..412fb87bc 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -1004,6 +1004,7 @@ test("trigger() bubbling", function() {
equal( win, 4, "doc bubble" );
// manually clean up events from elements outside the fixture
+ jQuery(window).off("click");
jQuery(document).off("click");
jQuery("html, body, #qunit-fixture").off("click");
});
@@ -2123,7 +2124,7 @@ test("Non DOM element events", function() {
ok( true, "Event on non-DOM object triggered" );
});
- jQuery(o).trigger("nonelementobj");
+ jQuery(o).trigger("nonelementobj").off("nonelementobj");
});
test("inline handler returning false stops default", function() {