View Full Version : [CLOSED] Ext.iterate infinate loop in IE7

9 Dec 2010, 9:26 AM
The below code example runs fine in FF3, adding a copy of ever object property with 'X' appended to it.

In IE7 it crashes the browser.

// below runs fine in FF3
// runs FOREVER in IE7 (7.0.5730)
var obj = {foo : 5, bar: 3};
Ext.iterate(obj, function(key,value) {
obj[key+'X'] = value;

9 Dec 2010, 9:39 AM
Well, you keep adding new properties to the object your iterating so I'm not surprised and I wouldn't call this a bug. Very weird use case... :)