]> source.dussan.org Git - jquery.git/commitdiff
Remove unneeded parameter hockey in event shortcuts.
authorDave Methvin <dave.methvin@gmail.com>
Thu, 1 Nov 2012 23:48:21 +0000 (19:48 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 1 Nov 2012 23:48:21 +0000 (19:48 -0400)
src/event.js

index fdb10c25fcb413b55a4ab94a389704d2fefe7ea7..c3da76752179fa0f83ff2b90dc766b783702a833 100644 (file)
@@ -967,11 +967,6 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
 
        // Handle event binding
        jQuery.fn[ name ] = function( data, fn ) {
-               if ( fn == null ) {
-                       fn = data;
-                       data = null;
-               }
-
                return arguments.length > 0 ?
                        this.on( name, null, data, fn ) :
                        this.trigger( name );