Event class for jQuery

Event class for jQuery


Feedback please! :)
I really like (and support) this feature.
http://dev.jquery.com/ticket/3662
Also... I know that the returned value from jQuery.fn.trigger is used
here and there (jQuery UI?). But that behavior is really odd and
fragile in my opinion (false overrides any previous value).
I think it'd be nice to return true/false depending on whether
e.preventDefault() was called. This would be very useful for custom
events, to allow event handlers to stop a scheduled (custom) behavior.
As an alternative, we could add e.isDefaultPrevented() that retrieves
this value from the event object.
Note that none of this last 2 behaviors (or the one in the ticket) is
my invention.
I'm just imitating AS3's event system. I suppose that belongs to some
EcmaScript specification as well.
http://docs.brajeshwar.com/as3/flash/events/Event.html
Thanks
--
Ariel Flesler
http://flesler.blogspot.com