PDA

View Full Version : Problem: ExtJS changing Javascript Object Properties [for (var elem in array)]



georgh
6 Aug 2007, 8:21 AM
Not sure if this is a real "bug", but it looks like one from my "perspective":

I have the following issue with ExtJS 1.1 (Stable) tested on IE 6.0 (Windows XP):

A loop similar to:
for (var elem in testarray)
{
testarray[elem].style.visibility = 'visible';
}

does not work anymore when I include ext-base.js and ext-core.js in the web page. A full HTML page is attached (with a .txt extension and excluding the ext files). Actually the same problem exists when using prototype but not with YUI or jQuery.

I know that such Javascript code as the one give is problematic at best. However, we do have a huge amount of existing Javascript code in our company and I know that such loops are used.

Therefore, my question is: Will this behavior be "fixed" or will it stay the way it is? (If this will stay the way it is we will, unfortunately, not be able to use ExtJS.)

Thanks for any insight/comments on that issue.

matjaz
6 Aug 2007, 9:13 AM
http://extjs.com/forum/showthread.php?t=10474

jack.slocum
6 Aug 2007, 6:16 PM
Here's another link with somewhat related info:

http://extjs.com/forum/showthread.php?p=30035#post30035

georgh
6 Aug 2007, 11:35 PM
Thanks for the links to the old threads (as there is no clear "name" for the issue, I could not find it with a quick search ...).

Just to sum up: This "property" of ExtJS is going to stay the way it is?

I can understand your point of view on this topic. Unfortunately, that means I cannot use ExtJS in our Framework as we cannot have such changes to existing applications ... Bad luck for us.

Regards,
Georg