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
Attachments (0)
Change History (2)
Changed July 19, 2012 10:50PM UTC by comment:1
component: | ui.core → ui.droppable |
---|---|
status: | new → open |
summary: | Destroy of ui.draggable throws TypeError → Droppable: Destroying draggable inside drop callback throws TypeError |
Changed October 11, 2012 02:49PM UTC by comment:2
milestone: | 1.9.0 → 2.0.0 |
---|