1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    17
    Vote Rating
    1
    ryancanulla is on a distinguished road

      0  

    Default Mediating an event from one Controller in another.

    Mediating an event from one Controller in another.


    Is this possible w/out using routes? I want to fire an event in one controller and mediate it in another. In the past I would have used getController() but this seems to have been removed.

    Thanks in advance for any help/insight!

    Ryan

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    548
    Vote Rating
    18
    estesbubba will become famous soon enough

      0  

    Default


    This topic has come up a lot lately. Here is how we do it (look at post #3 for solution)

    http://www.sencha.com/forum/showthre...l=1#post703978

  3. #3
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    548
    Vote Rating
    18
    estesbubba will become famous soon enough

      0  

    Default


    FYI it's now me.getApplication()

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    17
    Vote Rating
    1
    ryancanulla is on a distinguished road

      0  

    Default


    amazing. thank you!

  5. #5
    Sencha User
    Join Date
    Jan 2012
    Posts
    17
    Vote Rating
    1
    ryancanulla is on a distinguished road

      0  

    Default


    For anyone else trying to do the same.

    FYI - It's now

    Code:
            var me = this;
            me.getApplication().on({
                loginSuccess : me.onLoggedIn,
                scope : me
            });
    And

    Code:
            var me = this;
            me.getApplication().fireEvent('loginSuccess');

Thread Participants: 1