I've come across a bunch of blogs talking about the issue of droppable handlers being called in the order they were registered as droppables, as opposed to, say, zIndex order. Evidentally the same problem arrises in other frameworks besides JQuery.

My current plan is to, have each draggable handler to simply add a reference to itself to a list. When the drag is done (draggable's stop function is called), it will walk through the list of draggable's that were summoned in that drag, and pick out the desired one to perform the necessary action on (highest zIndex or whatever).

Does anybody have a simpler and/or more elegant solution?