Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#8397 closed bug (duplicate)

.hover + .clone(true) broken?

Reported by: cowboy Owned by: Rick Waldron
Priority: high Milestone: 1.next
Component: manipulation Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:


Maybe this is a bug. Event callbacks bound with the .hover helper function don't seem to get copied over with a .clone(true).


(Tested in Chrome 10 beta)

Change History (7)

comment:1 Changed 12 years ago by danheberden

Component: unfiledmanipulation
Priority: undecidedhigh

More specifically, mouseenter/mouseleave: http://jsfiddle.net/danheberden/d6wm8/3/

Ben also asked about focusin, wrt possible events getting missed

Last edited 12 years ago by danheberden (previous) (diff)

comment:2 Changed 12 years ago by Rick Waldron

Owner: set to Rick Waldron
Status: newassigned

comment:3 Changed 12 years ago by dmethvin

Hmmm... Seems like *any* events attached via the special events API may not have their setup/teardown done properly unless they take the possibility of cloning into account. For example, #7340 (backed out in 1.5 for other reasons) was trying to remember the number of attaches so it could disconnect the event when it dropped to zero. That's gonna break if you clone elements.

comment:4 Changed 12 years ago by Rick Waldron

Resolution: duplicate
Status: assignedclosed

comment:5 Changed 12 years ago by Rick Waldron

Duplicate of #7037.

comment:6 Changed 12 years ago by anonymous

same problem here. Hover events are not copied. As well as with 1.4.2 as with 1.5.2

comment:7 Changed 12 years ago by jaisonn

Same thing for me. I'm using quicksand to clone elements and then when I try to use the .hover on it, simply doesn't work.

Note: See TracTickets for help on using tickets.