Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #11
    Sencha User
    Join Date
    Feb 2010
    Posts
    4
    Vote Rating
    0
    ecbelluomini is on a distinguished road

      0  

    Default MVC EVENTS fires twice

    MVC EVENTS fires twice


    I am with similar problem. Events fires twice using ext js 4.2.0.663gpl.

    Attached is an example of the code where the problem occurred.
    Attached Files

  2. #12
    Sencha User medley's Avatar
    Join Date
    Apr 2008
    Location
    Luxembourg
    Posts
    128
    Vote Rating
    0
    medley is on a distinguished road

      0  

    Default


    Hello,


    My problem is solved.
    With Extjs 4.1.1a, I had this code :
    Code:
    var navigation = me.getController('Navigation');
    navigation.init();

    With Extjs 4.2.0, I have this code :
    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.


    Regards
    Medley

  3. #13
    Sencha User
    Join Date
    Feb 2010
    Posts
    4
    Vote Rating
    0
    ecbelluomini is on a distinguished road

      0  

    Default


    Hello.

    Removing the call to the init function really solved the problem.

    Thank you very much.

  4. #14
    Sencha User
    Join Date
    May 2009
    Posts
    136
    Vote Rating
    5
    DiscoBoy is on a distinguished road

      0  

    Default


    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.

  5. #15
    Sencha - Ext JS Dev Team
    Join Date
    Jun 2011
    Location
    San Diego, CA
    Posts
    226
    Vote Rating
    43
    nohuhu has a spectacular aura about nohuhu has a spectacular aura about nohuhu has a spectacular aura about

      0  

    Default


    @DiscoBoy,

    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.

    Regards,
    Alex.