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 <j...@wikizzle.org> 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: http://wikizzle.org
> my blog: http://jimhigson.blogspot.com/
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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