Mediator is created after view is added with addChild(). Is this normal ?
I am seeing my viewMediator is instantiating after view is added ( with addChild) . I expected viewMediator to instantiate after view gets instantiated ( no matter it's added or not ). Should i recheck my code ?
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Stray on 01 Jun, 2012 12:52 PM
The automatic creation of mediators is triggered by views being added to stage, not by their being created (think about it - how could the system know that you have new Thing()ed?
Your code is correct, you're just a bit unclear about what the mediatorMap is intended to do.
Stray
vishwas.gagrani closed this discussion on 01 Jun, 2012 01:30 PM.
vishwas.gagrani re-opened this discussion on 01 Jun, 2012 01:30 PM
vishwas.gagrani closed this discussion on 01 Jun, 2012 01:30 PM.