Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / General Discussion / Chaining mediator registration not working? on: October 22, 2012, 11:46:34
I am trying to register a view component with a mediator, then in the onRegister method of the mediator, I'm trying to register another component with another mediator. The first onRegister is called, yet the next is not.


So something like:

:
override public function onRegister(): void
{
   facade.registerMediator( new AppMediator( app ) );
}


=== Then, inside AppMediator ===

:
override public function onRegister(): void
{
   facade.registerMediator( new GameMediator( app.game ) );
}


There is obviously an app helper in the AppMediator. The first onRegister() gets called by the facade but the second onRegister() doesn't get called by the facade.


Any explanation, I thought this was standard practice?


Gary Paluk

P.S. All other objects exist and are tested to be instantiated.
Pages: [1]