Commit ef93f954 authored by Veaceslav Grimalschi's avatar Veaceslav Grimalschi Committed by Dave Methvin

Event: Fully clean up events in unit test

Closes gh-1685
(cherry picked from commit 4467ed606ab0a9b28ed495e682576910937fa5e0)
parent 61df6486
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment