<http://api.prototypejs.org/dom/Event/observe/> Changes in 1.6.x
Prior to Prototype 1.6,
a fourth argument (useCapture), a boolean that indicated whether to use the
browser's capturing phase or its bubbling phase. Since MSIE does not support
the capturing phase, we removed this argument from 1.6, lest it give users
the false impression that they can use the capturing phase in all browsers.
1.6 also introduced setting the this context to the element being observed,
automatically extending the Event
On Sat, Nov 27, 2010 at 5:26 PM, Glenn Maynard <gl...@zewt.org> wrote:
> [sent by email to -core first, forwarding to correct list; recommend
> using standard list naming, prototype-dev and prototype-user]
> Prototype used to support event capture, and this mysteriously
> disappeared at some point. What happened?
> Event capture is indispensable for some things. It doesn't work in IE
> (except IE9, finally), but that doesn't explain not supporting it at
> For example, I use it to track which element has focus by capturing
> document onfocus. The event doesn't bubble, so it has to be done
> during capture. That doesn't work in IE, so I use focusin there
> instead; since it bubbles it doesn't need capturing.
> I've also used it a lot for dealing with touchscreen events, where I
> want to capture and modify them before they're passed along to higher-
> level observers. IE is irrelevant here.
> I work around the problem by going back to using addEventListener
> manually, but that loses a lot of functionality, and it's a much
> bigger pain now since I lose all of Element#on. Event capture is an
> important part of DOM event handling; where did it go?
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To post to this group, send email to
> To unsubscribe from this group, send email to
> For more options, visit this group at
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at