Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#3074 closed bug (invalid)

clone(true) does not appear to maintain data() within nodes

Reported by: booshtukka Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:

Description

When cloning elements, and trying to access data within those elements, it is no longer available.

A

Change History (2)

comment:1 Changed 12 years ago by flesler

Resolution: invalid
Status: newclosed

By data() you mean jQuery.data() ? If so, that is expected and actually forced.

If it wasn't jQuery.data(), do reopen and add some more detail.

comment:2 Changed 11 years ago by mikecapp

I think he meant Bug #4191 - data attached via foo.data("key", value) is lost on clone(true). I've attached a demo there.

Note: See TracTickets for help on using tickets.