We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc1cb12 commit 4467ed6Copy full SHA for 4467ed6
test/unit/event.js
@@ -992,6 +992,7 @@ test("trigger() bubbling", function() {
992
equal( win, 4, "doc bubble" );
993
994
// manually clean up events from elements outside the fixture
995
+ jQuery(window).off("click");
996
jQuery(document).off("click");
997
jQuery("html, body, #qunit-fixture").off("click");
998
});
@@ -2036,7 +2037,7 @@ test("Non DOM element events", function() {
2036
2037
ok( true, "Event on non-DOM object triggered" );
2038
2039
- jQuery(o).trigger("nonelementobj");
2040
+ jQuery(o).trigger("nonelementobj").off("nonelementobj");
2041
2042
2043
test("inline handler returning false stops default", function() {
0 commit comments