Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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:


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 brandon

Resolution: fixed
Status: newclosed

Added in r6287

comment:2 Changed 14 years ago by trixi


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

Note: See TracTickets for help on using tickets.