AFAIK, applyargs will call your setters.
construct is called with a special 'maskedargs' which allows you to
set args that you don't want applyArgs to see to _ignoreAttribute,
which will shadow the argument. You can't delete the argument,
because the args are this complicated inherited hash with the class
defaults as a prototype.
This is an area ripe for simplification, IMO.
On 2006-06-12, at 22:44 EDT, Henry Minsky wrote:
>
> Can someone explain to me the Zen of applyArgs? If you have a
> setter for the "foo" property defined,
> and you pass in {foo: 259 } as the args to a new instance, and in
> the construct method you
> explicitly set this.foo to some value, then is __LZapplyArgs
> supposed to skip running the setter for
> that arg? If you want it to skip running the setter, are you
> supposed to delete the value from the args list while
> you're in the construct method?
>
>
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev