Welcome Guest Search | Active Topics | Sign In | Register

Web controls changing browser javascript behavior Options
kizel
Posted: Tuesday, September 18, 2012 7:28:18 PM
Rank: Member
Groups: Member

Joined: 8/27/2012
Posts: 11
I just upgraded from version 9.0 of the web controls to 10.0. It seems to have made some kind of global change that affects the ability to loop through arrays in javascript.

Trying to loop through an array using for-in used to work in all browsers, but now there's an extra loop iteration:

Code: JavaScript
var test_arr = ["a","b","c"];
for(var i in test_arr) alert(test_arr[i]);


After upgrading, I get 4 alerts instead of 3, with the last being a function reference. I know this is not semantically correct for arrays, but we have a lot of shared functions that use this syntax which is supported by browsers.

I reverted back to 9.0 for now. Please let me know if this can be corrected, or if there's some javascript I can add to make it stop doing this until you have a chance to fix it. Thank you.
eo_support
Posted: Tuesday, September 18, 2012 9:01:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

This is a known issue. We already have a new build that fixed this issue. We will PM you the download location of the new build shortly.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.