Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Welcome, Guest. Please login or register.
April 27, 2017, 05:22:55 PM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.
Pages: [1]
Author Topic: equivalent of initializeModel and initializeView in ApplicationFacade  (Read 2606 times)
Sr. Member
Posts: 65

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

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: 2865

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

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]
Jump to: