Side navigation
#12014 closed bug (cantfix)
Opened July 05, 2012 08:34AM UTC
Closed July 05, 2012 12:50PM UTC
Last modified July 05, 2012 02:26PM UTC
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: | ||
| Blocked by: | Blocking: | 
Description
See example: http://jsfiddle.net/yvguq
Attachments (0)
Change History (2)
Changed July 05, 2012 12:50PM UTC by comment:1
| resolution: | → cantfix | 
|---|---|
| status: | new → closed | 
Changed July 05, 2012 02:26PM UTC by comment:2
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).
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.