From: Dave Methvin Date: Thu, 1 Nov 2012 23:48:21 +0000 (-0400) Subject: Remove unneeded parameter hockey in event shortcuts. X-Git-Tag: 1.9.0b1~124 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9c2f0005675c8d913aabd83ed6723aab6ac9e59c;p=jquery.git Remove unneeded parameter hockey in event shortcuts. --- diff --git a/src/event.js b/src/event.js index fdb10c25f..c3da76752 100644 --- a/src/event.js +++ b/src/event.js @@ -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 );