X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent.js;h=f36139fb5f87798b52e5c9ae5918b5db34b78277;hb=4397f0fd41064346bce16772eec78cd5d2a1682e;hp=c826f17b14fcec3522803525f59221be1649a736;hpb=812a247dc997fa09583c0557c6173f9ec58e7d60;p=jquery.git diff --git a/src/event.js b/src/event.js index c826f17..f36139f 100644 --- a/src/event.js +++ b/src/event.js @@ -765,7 +765,6 @@ jQuery.each(["bind", "one"], function( i, name ) { } if ( jQuery.isFunction( data ) ) { - thisObject = fn; fn = data; data = undefined; } @@ -776,7 +775,7 @@ jQuery.each(["bind", "one"], function( i, name ) { }) : fn; return type === "unload" && name !== "one" ? - this.one( type, data, fn, thisObject ) : + this.one( type, data, fn ) : this.each(function() { jQuery.event.add( this, type, handler, data ); });