IE 8 does not support foreach method

extjs, foreach, internet-explorer-8

Solution

Ext has a forEach method. Where supported, it will defer to the native method:

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Array-method-forEach

Ext.Array.forEach(documenttab.query('.field,.button'), function(c){
    c.setDisabled(false);
});

Problem

This code not working in Internet Explorer 8. ``` documenttab.query('.field,.button').forEach(function(c){c.setDisabled(false);}); ``` I get the error SCRIPT438: Object doesn't support property or method 'forEach'

Original source

Related problems