[Proto-Scripty] Re: is there a way for Droppable to reject Dragable?

2008-10-01 Thread Jo Rhett
I was thinking that, but I don't see how to know when the Draggable leaves it. Would storing a reference to the droppable in the draggable be sufficient for this? Use the onDropped function to re-add the previous Dropabble? I've noticed that onDropped doesn't appear to be documented

[Proto-Scripty] Re: is there a way for Droppable to reject Dragable?

2008-10-01 Thread Diodeus
I'm not 100% clear on what you're describing, but this is how i do it: Droppables.add('myDrop', {accept:'someDraggable',onDrop:function(dragName,dropName) {registerDrop(dragName,dropName)}}) On Oct 1, 2:47 pm, Jo Rhett [EMAIL PROTECTED] wrote: I was thinking that, but I don't see how to know