Bug Tracker

Opened 13 years ago

Closed 13 years ago

#2121 closed bug (worksforme)

clone() issue

Reported by: pixeline Owned by:
Priority: major Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: clone() Cc:
Blocked by: Blocking:

Description

please forgive me if this proves not to be a bug, but it seems to me clone(true) does not carry on the behaviour attached to cloned elements, or elements being child of cloned element.

no matter how i tried, it fails, as you can see it here: http://www.pixeline.be/youplaboum/ui.html (fill the field "nombre de semaines" with, say, "2" which will clone twice a small UI on change. The datepicker behaviour in the cloned UI datefields do not work properly, nor the masked plugin, nor Kelvin's datepicker. Even if i redeclare the behaviour in the function called back when cloning is done, fails.

if i do not specify the boolean, the bug disappears, but then, i must redeclare the behaviour after the cloning took place.

let me know if you need more info.

Change History (1)

comment:1 Changed 13 years ago by john

Resolution: worksforme
Status: newclosed

You may want to check this in jQuery 1.2.2, as a lot has changed since the last release, in the clone method.

Note: See TracTickets for help on using tickets.