hi there, thanks for a couple of amazing libraries. i can't think how
much time and hair they've saved me :)

i am trying to code a drag/drop system, and am using Draggable and
Droppables for it, and they work very well. however, i have the
additional requirement of knowing when a draggable is dropped NOT on a
droppable (i.e. anywhere else)

line 419 of dragdrop.js is :
if(dropped && this.options.onDropped)
this.options.onDropped(this.element);

i have added this to the next line as a hacky fix :
if(!dropped && this.options.onDroppedOutside)
this.options.onDroppedOutside(this.element);

is there any way to do this without hacking the dragdrop.js file?
onEnd seems to be called regardless of where it was dropped (on a
droppable or not), and so isn't quite what i need.

thanks for any advice,
chris

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to