trigger with many data params
I've implemented drag/drop to work as special events. I'd really like to have the drop work like:
- $(el).delegate(".drop","drop",function(ev, drop, drag){
- if(drag.hasClass('nope'){
- drop.cancel();
- }
- })
But as trigger can only take 1 data argument, I can't pass the drag to the event handler unless I rig it into the event or drop. I don't want to do this b/c they are are independent.
Is there a reason for this limitation? I know arguments makes things relatively slow, but it would be inconsequential compared to trigger calling parentNode.
Would a patch be accepted where you can do the following?
- $(dropPoint).trigger("drop",drop, drag);
Thanks!