X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent.js;h=c3c978b7f1c8bf800872530ba626b0f14c35aced;hb=c4f144eeffd94c745839b0ced2de9c62cfa9f075;hp=380d3d49e38d9d069b6cc2d7a8daae19bddacb64;hpb=bca82254137a161094377b2d8189c2d9d5906a0f;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; }