View Full Version : ExtJS 4.2.2 - After the application is build (minified), Ajax override not working.

18 Feb 2014, 9:32 AM
Hi All,
In App.js I am override some values for Ext.Ajax. Like timeout, setting all method to use POST. Also I am setting error handling for requestexception. It works fine in debug mode. But when I run the build to create all-classes.js these overrides not being used. Every thing being set to default. In the all-classes.js, i see the app.js is at the end of the file.

Please help me what I might be doing wrong?

18 Feb 2014, 11:00 AM
How are you changing the values? Inside the launch function or just in the app.js file.
If you do it inside the launch function it will make sure those changes get set when the Ext.onReady event fires.

name: 'MyApp',
launch: function() {
Ext.Ajax.timeout = 60000;