Skip to main content

Bug Tracker

Side navigation

#4189 closed enhancement (fixed)

Opened February 19, 2009 10:57AM UTC

Closed March 20, 2009 03:10AM UTC

Last modified April 15, 2009 10:53AM UTC

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

Attachments (0)
Change History (2)

Changed March 20, 2009 03:10AM UTC by brandon comment:1

resolution: → fixed
status: newclosed

Added in r6287

Changed April 15, 2009 10:53AM UTC by trixi comment:2

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