Skip to main content

Search and Top Navigation

#8437 open bug ()

Opened July 10, 2012 08:58PM UTC

Last modified October 11, 2012 02:49PM UTC

Droppable: Destroying draggable inside drop callback throws TypeError

Reported by: kenterfie Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.droppable Version: 1.8.21
Keywords: Cc:
Blocked by: Blocking:
Description

If i try to destroy a draggable element after drop like this

$('#one').draggable();

$('#two').droppable({

drop: function(event, ui) {

ui.draggable.draggable("destroy");

}

});

then i get a TypeError, because no destroy option is available.

this snippet of code reproduce the problem. notice you try it with debug console

http://jsfiddle.net/cM4Eb/1/

Attachments (0)
Change History (2)

Changed July 19, 2012 10:50PM UTC by scottgonzalez comment:1

component: ui.coreui.droppable
status: newopen
summary: Destroy of ui.draggable throws TypeErrorDroppable: Destroying draggable inside drop callback throws TypeError

Changed October 11, 2012 02:49PM UTC by scottgonzalez comment:2

milestone: 1.9.02.0.0