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
}
if ( fn === false ) {
fn = returnFalse;
- } else if ( !fn ) {
- return this;
}
if ( one === 1 ) {
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);