kalcifer / ember-dragula

Simple drag and drop with dragula and ember
MIT License
27 stars 17 forks source link

Expose drake instance in event action handlers #23

Closed ilucin closed 8 years ago

ilucin commented 8 years ago

If we want to have (for example) custom logic for canceling and reverting drag action we need to call drake.cancel(true) in drop event handler.

In ember-dragula we don't have a reference to drake instance in event action handlers. We could pick it up from child component that yields it but that would be really clumsy. I think it's a good idea to expose it as the last parameter in action handlers.