Closed polinom closed 11 years ago
Hey, sorry - just saw your Issue had been opened.
App.start(options)
gets called here, in MobileInit.js (and in DesktopInit.js, but options are not passed in that instance).
In this case, I am initializing my Application in 2 different files (MobileInit.js and DesktopInit.js), depending on whether device is mobile or desktop. Which context determines what options I am starting the Application with. It would certainly be possible to use the "initialize:before"
event to set this as well, but I like the simplicity of passing in the options object.
This answer your question?
As documentation of Marionette says: We have chans to pass
options
object to methodstart()
of an Application. However, I cant find where do you call methodstart()
so than I can pass my options to the application.On the other hand, Marionette provides an event that is triggered before app initialization.
So I can just do follow:
So my question is where
start()
method is triggered if it does, but if it does not triggers than what is the purpose of this method?Reference: https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.application.md#adding-initializers