diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-04-30 20:05:18 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-05-03 13:57:55 +0300 |
commit | 1a067a49d17e0fb2d487baa797f5c4cdea0337a2 (patch) | |
tree | a019b3836bdde347341ecf84e058b299e5b75dd3 /test/unit | |
parent | fb25bacf9b809a08c29e76decd8cda1579fdf192 (diff) | |
download | jquery-1a067a49d17e0fb2d487baa797f5c4cdea0337a2.tar.gz jquery-1a067a49d17e0fb2d487baa797f5c4cdea0337a2.zip |
Event: remove guard for falsy handler argument of jQuery#on method
(cherry-picked from fac67a984268ef8f7de952666fda6d8d32754f5f)
Since we don't have this in off method and its a common perception
that this is a rudiment code
Ref gh-2248
Closes gh-2249
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/event.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index 3854a2133..dbfb2cd53 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -5,20 +5,6 @@ module( "event", { teardown: moduleTeardown }); -test("null or undefined handler", function() { - expect(2); - // Supports Fixes bug #7229 - try { - jQuery("#firstp").on( "click", null ); - ok(true, "Passing a null handler will not throw an exception"); - } catch ( e ) {} - - try { - jQuery("#firstp").on( "click", undefined ); - ok(true, "Passing an undefined handler will not throw an exception"); - } catch ( e ) {} -}); - test("on() with non-null,defined data", function() { expect(2); |