trigger with many data params

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:

  1. $(el).delegate(".drop","drop",function(ev, drop, drag){
  2.    if(drag.hasClass('nope'){
  3.       drop.cancel();
  4.    }
  5. })

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?

  1. $(dropPoint).trigger("drop",drop, drag);

Thanks!