cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with new for-in loop in webscript's js file

explorer
Champ in-the-making
Champ in-the-making
Hi all,

Environment : 2.1 Enterprise, HSQL.

Well i was trying to use the for - in loop over an array in js file of webscript.
And when i look at the size of the variable having this array it shows as expected. when traversing through each element and look for a property over it. its saying that the property is undefined.

When i have the same array looped by ordinary for loop. i am getting the expected results.

Is this a bug?
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
I expect this covers your situation too:
http://forums.alfresco.com/viewtopic.php?p=28590#28590

Thanks,
Mike

explorer
Champ in-the-making
Champ in-the-making
Hai Mike,

Thanks fore the reply.