Just created a new topic name, to differenciate from "structure change ideas".

I have just downloaded the latest snapshot, and there are still these 
anoying parts in the DynAPI.js file:
There are many places in the code where "for i in anArray" is used. This is 
certainly a big "for (i = 0 ...) " saver, BUT it doesn't allow for ANY 
extension of the Array prototype, as if you use the "for i in anArray" 
writing, all the methods you may add are also included by the in, so for 
example if you add a method foo() to the Array class, then writing 
soemething like :
a = [1, 2, 3];
for (i in a) {
        alert(a[i]);
}

also prints the source code of th foo() method you just add.

So adding methods to the Array class needs some patching in the Dynapi.js 
file (and maybe somewhere else, I've not checked all the code)


Marc

PS: Sorry, I know my English is sometimes ...... too French !


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to