X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fevent.js;h=fb28cb904e499e0d05c3cc00599851201a49124d;hb=155ecf42a0033785160e071507f0795b3c86a32b;hp=c826f17b14fcec3522803525f59221be1649a736;hpb=1960f28c0bf75b16e88460d6135058fd93202322;p=jquery.git diff --git a/src/event.js b/src/event.js index c826f17..fb28cb9 100644 --- a/src/event.js +++ b/src/event.js @@ -428,6 +428,8 @@ jQuery.event = { jQuery.extend( proxy, data || {} ); proxy.guid += data.selector + data.live; + data.liveProxy = proxy; + jQuery.event.add( this, data.live, liveHandler, data ); }, @@ -765,7 +767,6 @@ jQuery.each(["bind", "one"], function( i, name ) { } if ( jQuery.isFunction( data ) ) { - thisObject = fn; fn = data; data = undefined; } @@ -776,7 +777,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 ); });