Sorry for getting off topic, but I completely agree with Jim.  I'm currently
writing a complicated WYSIWYG editor and one of the annoyances I'm faced
with is the fact that only elements are able to fire events.  This makes my
Models use the window.document element to fire/observe events.

On Tue, Oct 6, 2009 at 1:00 AM, Jim Higson <> wrote:

> On Tuesday 06 October 2009 08:09:21 Tobie Langel wrote:
> > Finally, Sam is working on a new API for event delegation in 1.7 /
> > 2.0. If changes are to be made, they should be discussed once he's
> > posted his initial implementation.
> If I could suggest...
> The biggest problem with events at the moment is only Elements can fire
> them.
> This makes MVC difficult because the Model (javascript objects) not the
> view
> (HTML elements) would ideally fire the events.
> For Prototype2, maybe there should be an observable mixin. When mixed in,
> any
> object can fire events.
> Jim
> --
> Jim
> my wiki ajaxification thing:
> my blog:
> >

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to