On 2006-05-22, at 16:24 EDT, Adam Wolff wrote:
> recently some of the work I've been doing has led me to creating
> dictionaries of attributes that I want to be able set essentially
> as if
> they were LzNodes. Right now, the <event> syntax doesn't support this,
> even though the runtime allows it.
>
> What we do we think. Are you allowed to do this:
>
> <node name="thing">
> <method name="construct" args="p,a">
> this.dictionary = {};
> this.dictionary.aProp = null;
> ...
>
>
> <method name="setDictionaryValue" args="n,v">
> this.dictionary[ n ] = v;
> if ( this.dictionary[ "on" + n ] )
> this.dictionary[ "on" + n ].sendEvent( v );
>
> </method>
Hm setDictionaryValue looks suspiciously like setAttribute to me. I
think what you are really asking for is for a dictionary class that
supports setAttribute (and events) that LzNode inherits from (or
mixes in). This fits nicely with tomorrow's topic of refining LzNode...
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev