Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5425 closed enhancement (invalid)

why does live() need to run a selection during intit?

Reported by: Leeoniya Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.3.2
Keywords: live performance Cc: [email protected]
Blocked by: Blocking:

Change History (1)

comment:1 Changed 13 years ago by john

Resolution: invalid
Status: newclosed

jQuery can't have fore-knowledge of what will happen against the jQuery set - if so then that would be quite impressive.

Instead we recommend that you use event delegation instead, like the following:

  $(e.target).closest("td.foo", this).each(function(){
     // Your code goes here.
Note: See TracTickets for help on using tickets.