I agree with Cortlandt, Neil, and Tucker: bubbling can be very  
useful. For example, it can be used to implement the old Flash behavior.

I also like Tucker's idea of prototyping a W3C-compliant version and  
seeing how it behaves.

jim

On Sep 21, 2006, at 10:50 AM, Adam Wolff wrote:

> Here's a very rough proposal for what we could do to implement event
> bubbling:
>
>     - don't bother with event capture. it seems unnecessary to support
>       both capture and bubbling
>
>     - Modify Laszlo's LzEvent object as follows:
>         * Add a boolean:bubbles attribute which defaults to false
>         * Modify LzEvent.prototype.sendEvent as follows:
>             call back all registered delegates (current behavior)
>             if bubbling
>                 look up the immediateparent chain for a node which
>                 contains an event of the same name
>                 call sendEvent with the same argument on that event
>
>     - Modify LzView's "clickable" attribute as follows
>         * deprecate it
>         * all movieclips are clickable in Flash (need to test for perf
>           implications -- there are other options if this is slow)
>         * remove the compiler code that sets clickable when you  
> declare
>           mouseEvent handlers
>
>     - Modify LzModeManager attribute as follows
>         * deprecate or remove LzGlobalMouse; rely instead on bubbling
>         * consider caching results of bubbling lookups
>
> I'm sure I missed some stuff, but this kind of what I've been  
> thinking.
> A
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev


_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to