rvelasquez
13 Apr 2012, 7:41 AM
I need to bootstrap Sencha after another system has completed initializing. I'm registering a callback function that executes after the other system has initialized. However when Ext.application is called nothing happens. I've put an alert in the launch method and nothing happens. Basically my app.js looks like this:
function otherSystemInitializedSuccess() {
alert('other system initialized');
Ext.application({
....
launch: function() {
alert('launch');
....
}
});
};
The initialization of the other system happens in body onLoad and I register the function otherSystemInitializedSuccess (which is defined in app.js) with it. I see the first alert but I never see the "launch" alert. Previously Ext.application call was not inside this method and was executed directly in the app.js file. I have to use the callback because Sencha depends on some stuff in the other system being ready.
function otherSystemInitializedSuccess() {
alert('other system initialized');
Ext.application({
....
launch: function() {
alert('launch');
....
}
});
};
The initialization of the other system happens in body onLoad and I register the function otherSystemInitializedSuccess (which is defined in app.js) with it. I see the first alert but I never see the "launch" alert. Previously Ext.application call was not inside this method and was executed directly in the app.js file. I have to use the callback because Sencha depends on some stuff in the other system being ready.