Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 addSubview, Barefoot.View
C
 close, Barefoot.View.Client
 createError, Barefoot.Errors
 createExpressJsCallback, Barefoot.APIAdapter.Server
 createRouteFactories, Barefoot.APIAdapter.Server
D
 delegateEventsOnSubviews, Barefoot.View.Client
 dispatchLocalApiCall, Barefoot.APIAdapter.Server
F
 findRegisteredModelIdentifier, Barefoot.DataStore
G
 get
 getEnvironment, Barefoot.Util
 getRegisteredModels, Barefoot.DataStore
I
 initialize, Barefoot.DataStore
L
 loadMixins, Barefoot.Util
 loadMixinsForEnvironment, Barefoot.Util
N
 navigate, Barefoot.Router.Server
P
 parse, Barefoot.DataStore.Client
 preInitialize
R
 registerCollection, Barefoot.DataStore
 registerModel, Barefoot.DataStore
 removeSubview, Barefoot.View
 render
 renderSubviews, Barefoot.View
 route, Barefoot.Router.Server
S
 selectDOMElement, Barefoot.View
 set
 start
 sync, Barefoot.APIAdapter.Server
T
 toJSON, Barefoot.DataStore.Server
 toString
function addSubview(subview)
Adds a Barefoot.View as subview of this view.
function close()
Removes a view from the DOM and ensures that all events of the view itself and its subviews are removed too.
function createError(httpStatusCode,
name)
Creates an Error with a specified HTTP status code and name.
function createExpressJsCallback(successHandler,
errorHandler,
callbacks)
Encapsulates given callback function or an array with stacked callback functions and prepares it so it can be registered as an express js route.
function createRouteFactories()
This is called by the constructor of APIAdapter and is heavily inspired by the fancy Express.JS Application API.
function delegateEventsOnSubviews()
Binds all defined events of this view.
function dispatchLocalApiCall(httpMethod,
url,
data,
options)
This is the core where server side API callbacks are dispatched.
function findRegisteredModelIdentifier(model)
Scans the registered models and collections for the given model.
function get(key)
Returns a specific cookie value.
function get(key)
Returns a specific cookie value.
function getEnvironment()
Returns a string representing the current environment.
function getRegisteredModels()
Returns an object literal containing all currently registered models and collections.
function initialize()
Ensures that an empty registeredModels instance variable is created for the DataStore.
function loadMixins(environment)
Since Barefoot is runnable on server and client, this function returns environment specific code read from the “server” and “client” folder and returns the needed code fragments.
function loadMixinsForEnvironment(environment)
Loads mixins for a specific environment
function navigate(routeUri)
Rewrites Backbone.Router.navigate to replicate its functionality when rendering the application on the server.
function parse(serializedStore)
Takes serialized DataStore information (most commonly created with Barefoot.DataStore.Server.toJSON) and tries to restore the described datastructure.
function preInitialize(options)
Ensure that the setupRequestContext function is saved into the router for later use.
function preInitialize(options)
This function is called before any initialization or constructor of the Barefoot.Router is executed.
function registerCollection(identifier,
model)
An alias for registerModel.
function registerModel(identifier,
model)
Registers a specific Barefoot.Model or Barefoot.Collection with the given identifier.
function removeSubview(subview)
Removes Barefoot.View from this view (if present as subview) and sets the former subviews parentView property to undefined.
function render(view)
Calls the Barefoot.View.Shared.render method of the passed Barefoot.View.
function render(view)
This function initiates the rendering of the passed view.
function render()
Overwrites the default Backbone.View.render method.
function renderSubviews()
Iterates each present subview of this view and renders it to the DOM.
function route(routeUri)
This replacements for the route function of Backbone.Router ensures that each route defined in the router is added to the Express.JS app.
function selectDOMElement($)
Tries to select a DOM element for this View using the passed DOM manipulator that confirms to the jQuery API (http://api.jquery.com/).
function set(key,
value)
Sets the value of a cookie with the specified key.
function set(key,
value)
Sets the value of a cookie with the specified key.
function start()
When the application is coming up, this method gets called from Barefoot.Startup.Client.
function start()
Calls the passed starter function, buffered in preInitialize.
function start(Router,
APIAdapter,
startOptions)
Ensures that Backbone is available globally on the client.
function start(Router,
APIAdapter,
startOptions)
On start on the server, this function creates an APIAdapter if apiRoutes are present in the startOptions.
function sync(method,
model,
options)
During startup on the server, this function replaces Backbones own sync implementation to shortcut “local” API calls.
function toJSON()
Serializes all models and collections of this DataStore into a plain JavaScript object.
function toString()
String representation of this module.
function toString()
String representation of this module.
Close