Barefoot.Start.Client

This start mixin supplies a client specific start function to get the application up and running in the browser.

Summary
Barefoot.Start.ClientThis start mixin supplies a client specific start function to get the application up and running in the browser.
Functions
startEnsures that Backbone is available globally on the client.

Functions

start

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) RouterA 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) startOptionsThis object literal is passed to the router when initializing it.
function start(Router,
APIAdapter,
startOptions)
Ensures that Backbone is available globally on the client.
The barefoot router extends the default backbone router by applying environment specific mixins to it
Close