Opened 11 years ago
Last modified 10 years ago
#8437 open bug
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/
Change History (2)
comment:1 Changed 11 years ago by
Component: | ui.core → ui.droppable |
---|---|
Status: | new → open |
Summary: | Destroy of ui.draggable throws TypeError → Droppable: Destroying draggable inside drop callback throws TypeError |
comment:2 Changed 10 years ago by
Milestone: | 1.9.0 → 2.0.0 |
---|
Note: See
TracTickets for help on using
tickets.