Hi all,
I have an application running in the browser, debug is on.
No errors, everything runs as it should.
In one of my controllers, I use:
Code:
init : function () {
// every controller has getters for its stores.
// For store UsersStore getter would be getUsersStoreStore()
console.log("store: ");
console.log(this.getCarousselsStore());
this.getCarousselsStore().addListener('finishedLoading',this.carousselLoadHandler, this);
}
this makes sure that when a store is loaded, it throws an event that I pick up.
I set the listener in the inititialize of my homepage controller.
This work perfect in debug mode
But when running the application as a Package or Production build, I get an error on that line, that says
TypeError: 'undefined' is not a function (evaluating 'this.getCarousselsStore()')
Is there a sequence in how the app is loaded:
first requires, then stores, than controllers etc... and when are they instantiated? When app.js loads?
Thanks for the help!
Mario