Opened 10 years ago
Closed 10 years ago
#8543 closed bug (notabug)
calling empty() on a cloned element removes jQuery UI from original as well
Reported by: | gazs | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.core | Version: | 1.8.23 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I'm not sure if this is a jQuery UI bug or a jQuery bug, so forgive me if I'm posting in the wrong place. I have a minimal jsfiddle example that shows the problem:
I'm cloning an element with any attached events and then emptying the cloned element. This triggers a "remove" event, which destroys the jQuery UI element in the *original* element.
Note: See
TracTickets for help on using
tickets.
jQuery UI doesn't support cloning.