Bug Tracker

Modify

Ticket #7084 (closed bug: duplicate)

Opened 3 years ago

Last modified 15 months ago

conflict between Array object and cloning events

Reported by: emile.g Owned by:
Priority: undecided Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: clone, event Cc:
Blocking: Blocked by:

Description

If the Array object has been added new methods, the clone(true) method will cause strange behaviour on the cloned element :

  • bind events to an element
  • clone the element with its events : $().clone(true)
  • trigger any event of the new cloned element

=> Array added methods are executed

Exemple on jsbin :  http://jsbin.com/urite/2

Change History

comment:1 Changed 3 years ago by dmethvin

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

Duplicate of #6355.

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.