Okay, I think I see. LzParams are apparently not only case-sensitive
(as their documentation states), they also allow you to store the
same key more than once. That 'feature' does not seem to be
documented. Is it a feature we rely upon nonetheless?
On 2006-05-31, at 12:16 EDT, P T Withington wrote:
> And, do we even need LzParam?
>
> lzx> foo = {'a': 'a', 'A': 'A'}
> «Object#67| {a: a, A: A}»
> lzx> Debug.inspect({a: a, A: A})
> {a: a, A: A} {
> a: a
> A: A
> }«Object#67| {a: a, A: A}»
> lzx>
>
> Or is it obsolete?
>
> On 2006-05-31, at 12:07 EDT, 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
>
>
> _______________________________________________
> 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