#4189 closed enhancement (fixed)
Bind .live() handler to the current context rather than document
Reported by: | jollytoad | Owned by: | brandon |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | event | Version: | 1.3.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
to allow something like this:
$('button', container).live('click', function(ev) {
var button = this; ... ev.stopPropagation();
});
events are bound to 'container', and the function prevents further propagation.
see these discussions for more details: http://groups.google.com/group/jquery-dev/browse_thread/thread/911a50d2a0ed64b9 http://groups.google.com/group/jquery-dev/browse_thread/thread/c3f1ba71db48ecd9
Change History (2)
comment:1 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 14 years ago by
Hello,
i like this feature, but I think the resolution in r6287 is not complete yet. I have opened a new Ticket (http://dev.jquery.com/ticket/4539) and added a patch for the event and the traversing component, to fix this.
regards alex
Added in r6287