Permalink
Browse files

Event: Fully clean up events in unit test

Closes gh-1685
  • Loading branch information...
grimalschi authored and dmethvin committed Oct 8, 2014
1 parent bc1cb12 commit 4467ed606ab0a9b28ed495e682576910937fa5e0
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/unit/event.js
View
@@ -992,6 +992,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");
});
@@ -2036,7 +2037,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() {

0 comments on commit 4467ed6

Please sign in to comment.