dperez <[EMAIL PROTECTED]> writes:
> The problem in your sample is that we are sharing the array object.
> If instead of an array it were an integer or a string or any other atomic
> value this wouldn't happen.
Correct. The problem is with ANY property that has as its default value
something that evaluates to a reference.
Derrell
>
> Derrell.Lipman wrote:
>>
>> This could be a real problem if,
>> for example, one created a class with a property like this:
>>
>> uniqueValue :
>> {
>> _legacy : true,
>> defaultValue : new Array(23, 42)
>> }
>>
>> If there are two objects of this class and one of them does:
>>
>> var a = o.getUniqueValue();
>> a[1] = 69;
>>
>> then the other object will now see [ 23, 69 ] instead of its supposed
>> default
>> value of [ 23, 42 ]. This would be true of objects instantiated before or
>> after the defaultValue array was modified.
>>
>
> --
> View this message in context:
> http://www.nabble.com/Possible-bug-in-resize-behaviour-tf3428443.html#a9589428
> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel