I want to make a delete area, where any element which is dropped gets deleted.
Hence I implemented this as a droppable with drop:function(event,ui){ui.helper.remove()}
.
This doesn't work with jsPlumb.draggable()
.
This works fine when I make the elements draggable with Jquery UI $(...).draggable()
.
Hence it appears that jsPlumb.draggable($(...),{})
doesn't use a helper. Calling ui.draggable.remove()
deletes many more elements.
I think there's nothing in jsPlumb documentation or StackOverflow about this specific issue.
Any ideas?
Now the best solution would be without an elseif
ladder to check for various implementations from various plugins, if possible.