LzParam was supposed to be a LzNode that could function as a dictionary.
Probably an override of setAttribute would be more appropriate, but the
compiler inlines some of those calls.
A
On May 31, P T Withington wrote:
> [From LzParam]
>
> //undefine all setters but name and id
> LzParam.prototype.setters.$hasdefaultattrs = -1;
>
> //==============================================================================
> // @keywords private
> //==============================================================================
> LzParam.prototype.construct = function ( parent , args ){
> super.construct( parent, args );
> var mysetters ={};
> mysetters.__proto__ = this.setters;
> this.setters = mysetters;
> // construct
> this.d = {};
> }
>
> The construct method is creating a shadow setters table for every instance of
> LzParam. Is this really necessary?
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev