Bug Tracker

Modify

Ticket #2121 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

clone() issue

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

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

comment:1 Changed 5 years ago by john

  • Status changed from new to closed
  • Resolution set to worksforme

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.