node-barefoot
Version:
Barefoot makes code sharing between browser and server reality. Write your application once and run it on both ends of the wire.
84 lines (42 loc) • 53.1 kB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Index - Barefoot</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="IndexPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
<!-- Generated by Natural Docs, version 1.52 -->
<!-- http://www.naturaldocs.org -->
<!-- saved from url=(0026)http://www.naturaldocs.org -->
<div id=Index><div class=IPageTitle>Index</div><div class=INavigationBar>$#! · 0-9 · <a href="#A">A</a> · <a href="#B">B</a> · <a href="#C">C</a> · <a href="#D">D</a> · <a href="#E">E</a> · <a href="#F">F</a> · <a href="#G">G</a> · H · <a href="#I">I</a> · J · K · <a href="#L">L</a> · <a href="#M">M</a> · <a href="#N">N</a> · O · <a href="#P">P</a> · Q · <a href="#R">R</a> · <a href="#S">S</a> · <a href="#T">T</a> · <a href="#U">U</a> · V · W · X · Y · Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="A"></a>A</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.addRoute" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>addRoute</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/view-js.html#Barefoot.View.addSubview" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>addSubview</a>, <span class=IParent>Barefoot.View</span></td></tr><tr><td class=IHeading><a name="B"></a>B</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/index-js.html#Barefoot" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>Barefoot</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/apiadapter-js.html#Barefoot.APIAdapter" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>Barefoot.<wbr>APIAdapter</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>Barefoot.<wbr>APIAdapter.<wbr>Server</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/collection-js.html#Barefoot.Collection" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>Barefoot.<wbr>Collection</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/cookieadapter-js.html#Barefoot.CookieAdapter" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>Barefoot.<wbr>CookieAdapter</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/client/cookieadapter-mixin-js.html#Barefoot.CookieAdapter.Client" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>Barefoot.<wbr>CookieAdapter.<wbr>Client</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/cookieadapter-mixin-js.html#Barefoot.CookieAdapter.Server" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>Barefoot.<wbr>CookieAdapter.<wbr>Server</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/datastore-js.html#Barefoot.DataStore" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')" class=ISymbol>Barefoot.<wbr>DataStore</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/client/datastore-mixin-js.html#Barefoot.DataStore.Client" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')" class=ISymbol>Barefoot.<wbr>DataStore.<wbr>Client</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/datastore-mixin-js.html#Barefoot.DataStore.Server" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')" class=ISymbol>Barefoot.<wbr>DataStore.<wbr>Server</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/errors-js.html#Barefoot.Errors" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')" class=ISymbol>Barefoot.<wbr>Errors</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/model-js.html#Barefoot.Model" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')" class=ISymbol>Barefoot.<wbr>Model</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/router-js.html#Barefoot.Router" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')" class=ISymbol>Barefoot.<wbr>Router</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/client/router-mixin-js.html#Barefoot.Router.Client" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')" class=ISymbol>Barefoot.<wbr>Router.<wbr>Client</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/router-mixin-js.html#Barefoot.Router.Server" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')" class=ISymbol>Barefoot.<wbr>Router.<wbr>Server</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/client/start-js.html#Barefoot.Start.Client" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')" class=ISymbol>Barefoot.<wbr>Start.<wbr>Client</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/start-js.html#Barefoot.Start.Server" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')" class=ISymbol>Barefoot.<wbr>Start.<wbr>Server</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/util-js.html#Barefoot.Util" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')" class=ISymbol>Barefoot.Util</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/view-js.html#Barefoot.View" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')" class=ISymbol>Barefoot.View</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/client/view-mixin-js.html#Barefoot.View.Client" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')" class=ISymbol>Barefoot.<wbr>View.<wbr>Client</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/view-mixin-js.html#Barefoot.View.Server" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')" class=ISymbol>Barefoot.<wbr>View.<wbr>Server</a></td></tr><tr><td class=IHeading><a name="C"></a>C</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/client/view-mixin-js.html#Barefoot.View.Client.close" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')" class=ISymbol>close</a>, <span class=IParent>Barefoot.<wbr>View.<wbr>Client</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/errors-js.html#Barefoot.Errors.createError" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')" class=ISymbol>createError</a>, <span class=IParent>Barefoot.<wbr>Errors</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.createExpressJsCallback" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')" class=ISymbol>createExpressJsCallback</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.createExpressJsRoute" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')" class=ISymbol>createExpressJsRoute</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.createRouteFactories" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')" class=ISymbol>createRouteFactories</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=IHeading><a name="D"></a>D</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/client/view-mixin-js.html#Barefoot.View.Client.delegateEventsOnSubviews" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')" class=ISymbol>delegateEventsOnSubviews</a>, <span class=IParent>Barefoot.<wbr>View.<wbr>Client</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.dispatchLocalApiCall" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')" class=ISymbol>dispatchLocalApiCall</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/errors-js.html#Barefoot.Errors.Errors" class=ISymbol>Errors</a>, <span class=IParent>Barefoot.<wbr>Errors</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.extractParams" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')" class=ISymbol>extractParams</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=IHeading><a name="F"></a>F</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/datastore-js.html#Barefoot.DataStore.findRegisteredModelIdentifier" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')" class=ISymbol>findRegisteredModelIdentifier</a>, <span class=IParent>Barefoot.<wbr>DataStore</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>Functions</span><div class=ISubIndex><a href="../files/lib/client/cookieadapter-mixin-js.html#Barefoot.CookieAdapter.Client.Functions" class=IParent>Barefoot.<wbr>CookieAdapter.<wbr>Client</a><a href="../files/lib/server/cookieadapter-mixin-js.html#Barefoot.CookieAdapter.Server.Functions" class=IParent>Barefoot.<wbr>CookieAdapter.<wbr>Server</a><a href="../files/lib/datastore-js.html#Barefoot.DataStore.Functions" class=IParent>Barefoot.<wbr>DataStore</a><a href="../files/lib/client/datastore-mixin-js.html#Barefoot.DataStore.Client.Functions" class=IParent>Barefoot.<wbr>DataStore.<wbr>Client</a><a href="../files/lib/server/datastore-mixin-js.html#Barefoot.DataStore.Server.Functions" class=IParent>Barefoot.<wbr>DataStore.<wbr>Server</a><a href="../files/lib/errors-js.html#Barefoot.Errors.Functions" class=IParent>Barefoot.<wbr>Errors</a><a href="../files/lib/client/router-mixin-js.html#Barefoot.Router.Client.Functions" class=IParent>Barefoot.<wbr>Router.<wbr>Client</a><a href="../files/lib/server/router-mixin-js.html#Barefoot.Router.Server.Functions" class=IParent>Barefoot.<wbr>Router.<wbr>Server</a><a href="../files/lib/client/start-js.html#Barefoot.Start.Client.Functions" class=IParent>Barefoot.<wbr>Start.<wbr>Client</a><a href="../files/lib/server/start-js.html#Barefoot.Start.Server.Functions" class=IParent>Barefoot.<wbr>Start.<wbr>Server</a><a href="../files/lib/util-js.html#Barefoot.Util.Functions" class=IParent>Barefoot.Util</a><a href="../files/lib/view-js.html#Barefoot.View.Functions" class=IParent>Barefoot.View</a><a href="../files/lib/client/view-mixin-js.html#Barefoot.View.Client.Functions" class=IParent>Barefoot.<wbr>View.<wbr>Client</a></div></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.Functions_and_Private_Functions" class=ISymbol>Functions and Private Functions</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=IHeading><a name="G"></a>G</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><span class=ISymbol>get</span><div class=ISubIndex><a href="../files/lib/client/cookieadapter-mixin-js.html#Barefoot.CookieAdapter.Client.get" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')" class=IParent>Barefoot.<wbr>CookieAdapter.<wbr>Client</a><a href="../files/lib/server/cookieadapter-mixin-js.html#Barefoot.CookieAdapter.Server.get" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')" class=IParent>Barefoot.<wbr>CookieAdapter.<wbr>Server</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/util-js.html#Barefoot.Util.getEnvironment" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')" class=ISymbol>getEnvironment</a>, <span class=IParent>Barefoot.Util</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/datastore-js.html#Barefoot.DataStore.getRegisteredModels" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')" class=ISymbol>getRegisteredModels</a>, <span class=IParent>Barefoot.<wbr>DataStore</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/start-js.html#Barefoot.Start.Server.getServerOnlyFiles" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')" class=ISymbol>getServerOnlyFiles</a>, <span class=IParent>Barefoot.<wbr>Start.<wbr>Server</span></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/lib/datastore-js.html#Barefoot.DataStore.initialize" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')" class=ISymbol>initialize</a>, <span class=IParent>Barefoot.<wbr>DataStore</span></td></tr><tr><td class=IHeading><a name="L"></a>L</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/util-js.html#Barefoot.Util.loadMixins" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')" class=ISymbol>loadMixins</a>, <span class=IParent>Barefoot.Util</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/util-js.html#Barefoot.Util.loadMixinsForEnvironment" id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')" class=ISymbol>loadMixinsForEnvironment</a>, <span class=IParent>Barefoot.Util</span></td></tr><tr><td class=IHeading><a name="M"></a>M</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.matchRoute" id=link41 onMouseOver="ShowTip(event, 'tt41', 'link41')" onMouseOut="HideTip('tt41')" class=ISymbol>matchRoute</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=IHeading><a name="N"></a>N</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/router-mixin-js.html#Barefoot.Router.Server.navigate" id=link42 onMouseOver="ShowTip(event, 'tt42', 'link42')" onMouseOut="HideTip('tt42')" class=ISymbol>navigate</a>, <span class=IParent>Barefoot.<wbr>Router.<wbr>Server</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/errors-js.html#Barefoot.Errors.NotFoundError" id=link43 onMouseOver="ShowTip(event, 'tt43', 'link43')" onMouseOut="HideTip('tt43')" class=ISymbol>NotFoundError</a>, <span class=IParent>Barefoot.<wbr>Errors</span></td></tr><tr><td class=IHeading><a name="P"></a>P</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/client/datastore-mixin-js.html#Barefoot.DataStore.Client.parse" id=link44 onMouseOver="ShowTip(event, 'tt44', 'link44')" onMouseOut="HideTip('tt44')" class=ISymbol>parse</a>, <span class=IParent>Barefoot.<wbr>DataStore.<wbr>Client</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>preInitialize</span><div class=ISubIndex><a href="../files/lib/client/router-mixin-js.html#Barefoot.Router.Client.preInitialize" id=link45 onMouseOver="ShowTip(event, 'tt45', 'link45')" onMouseOut="HideTip('tt45')" class=IParent>Barefoot.<wbr>Router.<wbr>Client</a><a href="../files/lib/server/router-mixin-js.html#Barefoot.Router.Server.preInitialize" id=link46 onMouseOver="ShowTip(event, 'tt46', 'link46')" onMouseOut="HideTip('tt46')" class=IParent>Barefoot.<wbr>Router.<wbr>Server</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/start-js.html#Barefoot.Start.Server.prepareBrowserify" id=link47 onMouseOver="ShowTip(event, 'tt47', 'link47')" onMouseOut="HideTip('tt47')" class=ISymbol>prepareBrowserify</a>, <span class=IParent>Barefoot.<wbr>Start.<wbr>Server</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/start-js.html#Barefoot.Start.Server.Private_Functions" class=ISymbol>Private Functions</a>, <span class=IParent>Barefoot.<wbr>Start.<wbr>Server</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.processCallbacks" id=link48 onMouseOver="ShowTip(event, 'tt48', 'link48')" onMouseOut="HideTip('tt48')" class=ISymbol>processCallbacks</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/datastore-js.html#Barefoot.DataStore.registerCollection" id=link49 onMouseOver="ShowTip(event, 'tt49', 'link49')" onMouseOut="HideTip('tt49')" class=ISymbol>registerCollection</a>, <span class=IParent>Barefoot.<wbr>DataStore</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/datastore-js.html#Barefoot.DataStore.registerModel" id=link50 onMouseOver="ShowTip(event, 'tt50', 'link50')" onMouseOut="HideTip('tt50')" class=ISymbol>registerModel</a>, <span class=IParent>Barefoot.<wbr>DataStore</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/view-js.html#Barefoot.View.removeSubview" id=link51 onMouseOver="ShowTip(event, 'tt51', 'link51')" onMouseOut="HideTip('tt51')" class=ISymbol>removeSubview</a>, <span class=IParent>Barefoot.View</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>render</span><div class=ISubIndex><a href="../files/lib/client/router-mixin-js.html#Barefoot.Router.Client.render" id=link52 onMouseOver="ShowTip(event, 'tt52', 'link52')" onMouseOut="HideTip('tt52')" class=IParent>Barefoot.<wbr>Router.<wbr>Client</a><a href="../files/lib/server/router-mixin-js.html#Barefoot.Router.Server.render" id=link53 onMouseOver="ShowTip(event, 'tt53', 'link53')" onMouseOut="HideTip('tt53')" class=IParent>Barefoot.<wbr>Router.<wbr>Server</a><a href="../files/lib/view-js.html#Barefoot.View.render" id=link54 onMouseOver="ShowTip(event, 'tt54', 'link54')" onMouseOut="HideTip('tt54')" class=IParent>Barefoot.View</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/lib/view-js.html#Barefoot.View.renderSubviews" id=link55 onMouseOver="ShowTip(event, 'tt55', 'link55')" onMouseOut="HideTip('tt55')" class=ISymbol>renderSubviews</a>, <span class=IParent>Barefoot.View</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/router-mixin-js.html#Barefoot.Router.Server.route" id=link56 onMouseOver="ShowTip(event, 'tt56', 'link56')" onMouseOut="HideTip('tt56')" class=ISymbol>route</a>, <span class=IParent>Barefoot.<wbr>Router.<wbr>Server</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/view-js.html#Barefoot.View.selectDOMElement" id=link57 onMouseOver="ShowTip(event, 'tt57', 'link57')" onMouseOut="HideTip('tt57')" class=ISymbol>selectDOMElement</a>, <span class=IParent>Barefoot.View</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>set</span><div class=ISubIndex><a href="../files/lib/client/cookieadapter-mixin-js.html#Barefoot.CookieAdapter.Client.set" id=link58 onMouseOver="ShowTip(event, 'tt58', 'link58')" onMouseOut="HideTip('tt58')" class=IParent>Barefoot.<wbr>CookieAdapter.<wbr>Client</a><a href="../files/lib/server/cookieadapter-mixin-js.html#Barefoot.CookieAdapter.Server.set" id=link59 onMouseOver="ShowTip(event, 'tt59', 'link59')" onMouseOut="HideTip('tt59')" class=IParent>Barefoot.<wbr>CookieAdapter.<wbr>Server</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>start</span><div class=ISubIndex><a href="../files/lib/client/router-mixin-js.html#Barefoot.Router.Client.start" id=link60 onMouseOver="ShowTip(event, 'tt60', 'link60')" onMouseOut="HideTip('tt60')" class=IParent>Barefoot.<wbr>Router.<wbr>Client</a><a href="../files/lib/server/router-mixin-js.html#Barefoot.Router.Server.start" id=link61 onMouseOver="ShowTip(event, 'tt61', 'link61')" onMouseOut="HideTip('tt61')" class=IParent>Barefoot.<wbr>Router.<wbr>Server</a><a href="../files/lib/client/start-js.html#Barefoot.Start.Client.start" id=link62 onMouseOver="ShowTip(event, 'tt62', 'link62')" onMouseOut="HideTip('tt62')" class=IParent>Barefoot.<wbr>Start.<wbr>Client</a><a href="../files/lib/server/start-js.html#Barefoot.Start.Server.start" id=link63 onMouseOver="ShowTip(event, 'tt63', 'link63')" onMouseOut="HideTip('tt63')" class=IParent>Barefoot.<wbr>Start.<wbr>Server</a></div></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.sync" id=link64 onMouseOver="ShowTip(event, 'tt64', 'link64')" onMouseOut="HideTip('tt64')" class=ISymbol>sync</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr><tr><td class=IHeading><a name="T"></a>T</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/datastore-mixin-js.html#Barefoot.DataStore.Server.toJSON" id=link65 onMouseOver="ShowTip(event, 'tt65', 'link65')" onMouseOut="HideTip('tt65')" class=ISymbol>toJSON</a>, <span class=IParent>Barefoot.<wbr>DataStore.<wbr>Server</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><span class=ISymbol>toString</span><div class=ISubIndex><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.toString" id=link66 onMouseOver="ShowTip(event, 'tt66', 'link66')" onMouseOut="HideTip('tt66')" class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</a><a href="../files/lib/server/router-mixin-js.html#Barefoot.Router.Server.toString" id=link67 onMouseOver="ShowTip(event, 'tt67', 'link67')" onMouseOut="HideTip('tt67')" class=IParent>Barefoot.<wbr>Router.<wbr>Server</a></div></td></tr><tr><td class=IHeading><a name="U"></a>U</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/lib/server/apiadapter-mixin-js.html#Barefoot.APIAdapter.Server.urlRegexp" id=link68 onMouseOver="ShowTip(event, 'tt68', 'link68')" onMouseOut="HideTip('tt68')" class=ISymbol>urlRegexp</a>, <span class=IParent>Barefoot.<wbr>APIAdapter.<wbr>Server</span></td></tr></table>
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CPrivateFunction>The functions generated by createRouteFactories use this function to create an actual api route.</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function addSubview(</td><td class="PParameter prettyprint " nowrap>subview</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Adds a Barefoot.View as subview of this view. </div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt3"><div class=CSection>Barefoot makes code sharing between browser and server reality. </div></div><div class=CToolTip id="tt4"><div class=CClass>When building a fancy JavaScript based client you’ll probably have a straight forward REST API in the backend. </div></div><div class=CToolTip id="tt5"><div class=CMixin>The server mixin for the APIAdapter takes the specified apiRoutes and does two things:</div></div><div class=CToolTip id="tt6"><div class=CClass>For the moment, the Barefoot collection does not introduce any new functionalities to Backbones collection. </div></div><div class=CToolTip id="tt7"><div class=CClass>The CookieAdapter gives generalized access to cookies on the client and server side. </div></div><div class=CToolTip id="tt8"><div class=CMixin>This mixin contains client specific code for the Barefoot.CookieAdapter component.</div></div><div class=CToolTip id="tt9"><div class=CMixin>This mixin contains client specific code for the Barefoot.CookieAdapter component.</div></div><div class=CToolTip id="tt10"><div class=CClass>The DataStore is a core object and extends the Barefoot.Model.</div></div><div class=CToolTip id="tt11"><div class=CMixin>This mixin contains client specific code for the Barefoot.DataStore component.</div></div><div class=CToolTip id="tt12"><div class=CMixin>This mixin contains client specific code for the Barefoot.DataStore component.</div></div><div class=CToolTip id="tt13"><div class=CClass>This class contains a set of predefined error objects which are thought to be used in your API route callbacks. </div></div><div class=CToolTip id="tt14"><div class=CClass>For the moment, the Barefoot model does not introduce any new functionalities to Backbones model. </div></div><div class=CToolTip id="tt15"><div class=CClass>The barefoot router extends the default backbone router by applying environment specific mixins to it</div></div><div class=CToolTip id="tt16"><div class=CMixin>Client specific code for the Barefoot.Router. </div></div><div class=CToolTip id="tt17"><div class=CMixin>This mixin contains any server side specific code for the Barefoot.Router.</div></div><div class=CToolTip id="tt18"><div class=CMixin>This start mixin supplies a client specific start function to get the application up and running in the browser.</div></div><div class=CToolTip id="tt19"><div class=CMixin>This start mixin supplies a server specific start function to get the application up and running on the node.js server backend.</div></div><div class=CToolTip id="tt20"><div class=CClass>Contains helper functions for loading environment specific mixins.</div></div><div class=CToolTip id="tt21"><div class=CClass>The barefoot view extends the default backbone view by applying an environment specific mixin to it.</div></div><div class=CToolTip id="tt22"><div class=CMixin>This mixin contains client specific code for the Barefoot.View class. </div></div><div class=CToolTip id="tt23"><div class=CMixin>Enhances the Barefoot.View class with server specific code fragments. </div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function close()</td></tr></table></blockquote>Removes a view from the DOM and ensures that all events of the view itself and its subviews are removed too. </div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function createError(</td><td class="PParameter prettyprint " nowrap>httpStatusCode,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>name</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Creates an Error with a specified HTTP status code and name. </div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function createExpressJsCallback(</td><td class="PParameter prettyprint " nowrap>successHandler,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>errorHandler,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>callbacks</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Encapsulates given callback function or an array with stacked callback functions and prepares it so it can be registered as an express js route.</div></div><div class=CToolTip id="tt27"><div class=CPrivateFunction>Creates an Express.JS request handlers.</div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function createRouteFactories()</td></tr></table></blockquote>This is called by the constructor of APIAdapter and is heavily inspired by the fancy Express.JS Application API.</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function delegateEventsOnSubviews()</td></tr></table></blockquote>Binds all defined events of this view. </div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function dispatchLocalApiCall(</td><td class="PParameter prettyprint " nowrap>httpMethod,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>url,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>data,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>options</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>This is the core where server side API callbacks are dispatched. </div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt31"><div class=CPrivateFunction>Takes a match object of a regex execution and extracts the parameters identified by keys. </div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function findRegisteredModelIdentifier(</td><td class="PParameter prettyprint " nowrap>model</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Scans the registered models and collections for the given model. </div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function get(</td><td class="PParameter prettyprint " nowrap>key</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns a specific cookie value.</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function get(</td><td class="PParameter prettyprint " nowrap>key</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns a specific cookie value.</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function getEnvironment()</td></tr></table></blockquote>Returns a string representing the current environment.</div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function getRegisteredModels()</td></tr></table></blockquote>Returns an object literal containing all currently registered models and collections.</div></div><div class=CToolTip id="tt37"><div class=CPrivateFunction>Returns an array with absolute paths to the files contained in the server sub folder.</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function initialize()</td></tr></table></blockquote>Ensures that an empty registeredModels instance variable is created for the DataStore.</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function loadMixins(</td><td class="PParameter prettyprint " nowrap>environment</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>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.</div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function loadMixinsForEnvironment(</td><td class="PParameter prettyprint " nowrap>environment</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Loads mixins for a specific environment</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt41"><div class=CPrivateFunction>This function takes an HTTP method and a URL. </div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function navigate(</td><td class="PParameter prettyprint " nowrap>routeUri</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Rewrites Backbone.Router.navigate to replicate its functionality when rendering the application on the server.</div></div><div class=CToolTip id="tt43"><div class=CError>If any resource was not found, this is the generic error for that situation. </div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt44"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function parse(</td><td class="PParameter prettyprint " nowrap>serializedStore</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Takes serialized DataStore information (most commonly created with Barefoot.DataStore.Server.toJSON) and tries to restore the described datastructure.</div></div><div class=CToolTip id="tt45"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function preInitialize(</td><td class="PParameter prettyprint " nowrap>options</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Ensure that the setupRequestContext function is saved into the router for later use.</div></div><div class=CToolTip id="tt46"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function preInitialize(</td><td class="PParameter prettyprint " nowrap>options</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>This function is called before any initialization or constructor of the Barefoot.Router is executed. </div></div><div class=CToolTip id="tt47"><div class=CPrivateFunction>Adds the Browserify middleware the the given express.js app.</div></div><div class=CToolTip id="tt48"><div class=CPrivateFunction>This function is used to run a callback function or an array of stacked callback functions which are registered for an API route.</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt49"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function registerCollection(</td><td class="PParameter prettyprint " nowrap>identifier,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>model</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>An alias for registerModel.</div></div><div class=CToolTip id="tt50"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function registerModel(</td><td class="PParameter prettyprint " nowrap>identifier,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>model</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Registers a specific Barefoot.Model or Barefoot.Collection with the given identifier. </div></div><div class=CToolTip id="tt51"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function removeSubview(</td><td class="PParameter prettyprint " nowrap>subview</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Removes Barefoot.View from this view (if present as subview) and sets the former subviews parentView property to undefined.</div></div><div class=CToolTip id="tt52"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function render(</td><td class="PParameter prettyprint " nowrap>view</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Calls the Barefoot.View.Shared.render method of the passed Barefoot.View. </div></div><div class=CToolTip id="tt53"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function render(</td><td class="PParameter prettyprint " nowrap>view</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>This function initiates the rendering of the passed view. </div></div><div class=CToolTip id="tt54"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function render()</td></tr></table></blockquote>Overwrites the default Backbone.View.render method. </div></div><div class=CToolTip id="tt55"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function renderSubviews()</td></tr></table></blockquote>Iterates each present subview of this view and renders it to the DOM. </div></div><div class=CToolTip id="tt56"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function route(</td><td class="PParameter prettyprint " nowrap>routeUri</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>This replacements for the route function of Backbone.Router ensures that each route defined in the router is added to the Express.JS app.</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt57"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function selectDOMElement(</td><td class="PParameter prettyprint " nowrap>$</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Tries to select a DOM element for this View using the passed DOM manipulator that confirms to the jQuery API (http://api.jquery.com/).</div></div><div class=CToolTip id="tt58"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function set(</td><td class="PParameter prettyprint " nowrap>key,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>value</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the value of a cookie with the specified key.</div></div><div class=CToolTip id="tt59"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function set(</td><td class="PParameter prettyprint " nowrap>key,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>value</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the value of a cookie with the specified key.</div></div><div class=CToolTip id="tt60"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function start()</td></tr></table></blockquote>When the application is coming up, this method gets called from Barefoot.Startup.Client.</div></div><div class=CToolTip id="tt61"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function start()</td></tr></table></blockquote>Calls the passed starter function, buffered in preInitialize.</div></div><div class=CToolTip id="tt62"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function start(</td><td class="PParameter prettyprint " nowrap>Router,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>APIAdapter,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>startOptions</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Ensures that Backbone is available globally on the client. </div></div><div class=CToolTip id="tt63"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function start(</td><td class="PParameter prettyprint " nowrap>Router,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>APIAdapter,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>startOptions</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>On start on the server, this function creates an APIAdapter if apiRoutes are present in the startOptions. </div></div><div class=CToolTip id="tt64"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function sync(</td><td class="PParameter prettyprint " nowrap>method,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>model,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>options</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>During startup on the server, this function replaces Backbones own sync implementation to shortcut “local” API calls.</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt65"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function toJSON()</td></tr></table></blockquote>Serializes all models and collections of this DataStore into a plain JavaScript object.</div></div><div class=CToolTip id="tt66"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function toString()</td></tr></table></blockquote>String representation of this module.</div></div><div class=CToolTip id="tt67"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">function toString()</td></tr></table></blockquote>String representation of this module.</div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt68"><div class=CPrivateFunction>Takes a route URL with possible placeholders like “/contacts/:contactid” and prepares a RegEx for later pattern matching when trying to resolve a route</div></div><!--END_ND_TOOLTIPS-->
</div><!--Index-->
<div id=Footer>Generated on May 28th, 2013 · <a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<div id=Menu><div class=MTitle>Barefoot</div><div class=MEntry><div class=MFile><a href="../files/lib/index-js.html">Barefoot</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/apiadapter-js.html">APIAdapter</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/cookieadapter-js.html">CookieAdapter</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/collection-js.html">Collection</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/datastore-js.html">DataStore</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/errors-js.html">Errors</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/model-js.html">Model</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/router-js.html">Router</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/util-js.html">Util</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/view-js.html">View</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Client Mixins</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="../files/lib/client/cookieadapter-mixin-js.html">CookieAdapter</a></div></div><div class=MEntry><div class=MFile><a href="../files/lib/client/datastore-mixin-js.ht