Skip to main content

Bug Tracker

Side navigation

#2121 closed bug (worksforme)

Opened January 07, 2008 02:31PM UTC

Closed January 14, 2008 07:20PM UTC

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.

Attachments (0)
Change History (1)

Changed January 14, 2008 07:20PM UTC by john comment:1

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.