function start( | Router, | | APIAdapter, | | startOptions | ) |
|
Ensures that Backbone is available globally on the client. It further starts up the Backbone.history.
Finally an instance of the passed Router object is created. The startOptions object is used to create the Router.
Parameters
(Barefoot.Router) Router | A Barefoot.Router object. Important: This is is not an instance of the router, it is the “plain” object which can be used for running “new Router(...)”. |
(Object) startOptions | This object literal is passed to the router when initializing it. |