X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fevent.js;h=e5f6a453a46eb4e00b5e6fd490ea885bdddb8732;hb=e06da1724cf05a83e14efa8b854348ac4e4a599a;hp=95718ad06bceb7dfb97761a9493a5bbcc774f4da;hpb=dae96f552e7ec4ddef52f86c61de18320a7b63ed;p=jquery.git diff --git a/src/event.js b/src/event.js index 95718ad..e5f6a45 100644 --- a/src/event.js +++ b/src/event.js @@ -548,13 +548,13 @@ jQuery.fn.extend({ var proxy = jQuery.event.proxy( fn ); proxy.guid += this.selector + type; - jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy ); + jQuery( this.context ).bind( liveConvert(type, this.selector), this.selector, proxy ); return this; }, die: function( type, fn ){ - jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null ); + jQuery( this.context ).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null ); return this; } });