Modify ↓
Ticket #12014 (closed bug: cantfix)
jQuery's clone method doesn't clone events bound via addEventListener method
| Reported by: | Wei Lou | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
See example: http://jsfiddle.net/yvguq
Change History
comment:1 Changed 11 months ago by dmethvin
- Status changed from new to closed
- Resolution set to cantfix
comment:2 Changed 11 months ago by Wei Lou
So jQuery is precisely designed to work in this way? If so, I think it's necessary to note this in jQuery's clone method document ( http://api.jquery.com/clone).
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Yep, use jQuery's event system if you also want to use jQuery's manipulation, so jQuery can track and copy the events for you.