Dan,
that's a nice addition for custom events,
it would be great to have that also for standard events, especially
for form events.
I suggest to have a couple of extra lines to declare the properties
before using them:
data.unshift({
type: type,
target: elem,
_preventDefault: null,
_stopPropagation: null,
preventDefault: function(){ this._preventDefault = true; },
stopPropagation: function(){ this._stopPropagation = true; },
timeStamp: now()
});
This avoids hundreds of warnings in the console saying
_stopPropagation and _preventDefault properties are not defined.
--
Diego Perini
On 19 Set, 16:29, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> Awesome. Small change with a big impact!
> --
> Brandon Aaron
>
> On Thu, Sep 18, 2008 at 10:18 PM, John Resig <[EMAIL PROTECTED]> wrote:
>
> > Dan Webb has given us a patch for custom event bubbling:
> >http://dev.jquery.com/attachment/ticket/3379/bubble.patch
>
> > Any thoughts?
>
> > --John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---