X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fevent.js;h=c3c978b7f1c8bf800872530ba626b0f14c35aced;hb=681f4fd3cdd4bdd23edbba05ed1389fabed86b41;hp=380d3d49e38d9d069b6cc2d7a8daae19bddacb64;hpb=a2731202917f8e90cad94ee574241d1626dc7fb6;p=jquery.git diff --git a/src/event.js b/src/event.js index 380d3d4..c3c978b 100644 --- a/src/event.js +++ b/src/event.js @@ -566,9 +566,7 @@ jQuery.each({ jQuery.fn.extend({ bind: function( type, data, fn, thisObject ) { if ( jQuery.isFunction( data ) ) { - if ( fn !== undefined ) { - thisObject = fn; - } + thisObject = fn; fn = data; data = undefined; } @@ -580,9 +578,7 @@ jQuery.fn.extend({ one: function( type, data, fn, thisObject ) { if ( jQuery.isFunction( data ) ) { - if ( fn !== undefined ) { - thisObject = fn; - } + thisObject = fn; fn = data; data = undefined; }