On Apr 28, 2010, at 4:33 PM, Mislav Marohnić wrote:

> Known bug: if the user observes the real "submit" event directly on a form 
> element and calls `stopPropagation()` in this handler, the "emulated:submit" 
> event will still fire and will still bubble up. This is because I don't know 
> how to detect whether or not stopPropagation was called, and even if I could, 
> the order in which "submit" handlers will fire at runtime is probably not 
> guaranteed, making this problem even more complex.

There is no way to detect whether stopPropagation was called — one of the huge 
flaws in the DOM2 event model. When someone calls `Event#stop`, we set a 
`stopped` boolean on the event object; that's the best we can do.

I'll play around with this; thanks!

Cheers,
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en

Reply via email to