Bug Tracker

Opened 11 years ago

Closed 11 years ago

#3966 closed bug (fixed)

Event doesn't get attached to all newly created elements when element is added to multiple nodes with one selector

Reported by: ebello Owned by: brandon
Priority: minor Milestone: 1.3.2
Component: event Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:

Description

I am creating a new div and assigning a mouseover event to it. I am then appending this div to multiple nodes with appendTo. In 1.2.6, this works fine, but in 1.3.1, the mouseover event only gets applied to the first created instance.

Attachments (2)

jQuery_event_bug.js (493 bytes) - added by ebello 11 years ago.
test-3966.htm (818 bytes) - added by dmethvin 11 years ago.
Mouseover event only sticks for the first copy

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by ebello

Attachment: jQuery_event_bug.js added

Changed 11 years ago by dmethvin

Attachment: test-3966.htm added

Mouseover event only sticks for the first copy

comment:1 Changed 11 years ago by dmethvin

Here's a simpler test case. Definitely works with 1.2.6 but fails with 1.3; tested with Firefox 3.0.2 and IE7. This may be due to how domManip now uses the original element for the first insert rather than making a clone each time the way it did in 1.2.6.

comment:2 Changed 11 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev [6239].

Note: See TracTickets for help on using tickets.