So I understand this is how we normally call a jquery droppable:
$( ".selector" ).droppable({
drop: function(event, ui) { ... }
})
Is it possible for me to write something like this:
$( ".selector" ).droppable({
drop: function(event, ui, additionalParameter) { return function(){....} }(myParameter)
});
As long as the value is a function reference, you can do whatever you like. So yes!
You probably want to capture the event and
uiobjects, so they need to be parameters in the returned function. So your code would be: