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'
Mozilla also publishes code for methods which you can put near the top of your JS and it will create them if they don't exist.
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach
I believe this should solve your issue.
vals = documenttab.query('.field,.button')
for (i = 0; i < vals.length; i++) {
vals[i].setDisabled(false);
}
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);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With