From: Ariel Flesler Date: Mon, 14 Sep 2009 22:58:20 +0000 (+0000) Subject: jquery event: misc removal X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=681f4fd3cdd4bdd23edbba05ed1389fabed86b41;p=jquery.git jquery event: misc removal --- 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; }