19 Mar 2013 6:30 PM #11
MVC EVENTS fires twice
I am with similar problem. Events fires twice using ext js 126.96.36.1993gpl.
Attached is an example of the code where the problem occurred.
20 Mar 2013 12:58 AM #12
My problem is solved.
With Extjs 4.1.1a, I had this code :
var navigation = me.getController('Navigation'); navigation.init();
With Extjs 4.2.0, I have this code :
var navigation = me.getController('Navigation');
I removed the call to the function "init" because it is automatically called when the function getController is called.
20 Mar 2013 5:04 PM #13
Removing the call to the init function really solved the problem.
Thank you very much.
26 Jun 2013 8:28 AM #14
So since ExtJS 4.2 you do not init controllers anymore?
I previously had UI files requiring their own set of controllers and went through this list and inited all controllers on the UI startup...maybe you could add this to your 4.1 -> 4.2 tutorial in the docs...
A short looup also shows that only the application auto inits controllers on getController, not another controller.
26 Jun 2013 8:48 AM #15
You never needed to init() your Controllers manually but there was a bug that prevented automatic init() in certain cases. That bug has been fixed in 4.2.