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

Pages: [1]
Author Topic: equivalent of initializeModel and initializeView in ApplicationFacade  (Read 3170 times)
Sr. Member
Posts: 65

View Profile Email
« on: February 13, 2014, 02:20:40 »

is there an equivalent of initializeModel and initializeView in ApplicationFacade for the JS port? (http://puremvc.org/pages/docs/AS3/standard/framework_asdoc/org/puremvc/as3/patterns/facade/Facade.html)

I see a startup function in the demo examples that registers the commands and then fires the notification instead of initializeController?


how this works out in the JS port?
Global Moderator
Hero Member
Posts: 2871

View Profile WWW Email
« Reply #1 on: March 06, 2014, 02:47:57 »

The initializeController() method is present, but it was deemed just as easy for the startup() method to register the StartupCommand and then trigger it.

In this particular application, the methodology of putting the registration of commands into a sub command of StatupCommand was implemented, which is an alternate way of doing things that reduces the number of classes the Facade has to know.
Pages: [1]