Skip to main content

Search and Top Navigation

#8543 closed bug (notabug)

Opened August 31, 2012 02:12PM UTC

Closed August 31, 2012 02:14PM UTC

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:

http://jsfiddle.net/ZTdPP/

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.

Attachments (0)
Change History (1)

Changed August 31, 2012 02:14PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

jQuery UI doesn't support cloning.