node-barefoot
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -48,3 +48,3 @@ /** Mixin: Barefoot.Router.Client | ||
function start() { | ||
/* global window */ | ||
/* global window,Backbone */ | ||
var Barefoot = require('../')() | ||
@@ -96,6 +96,3 @@ , self = this | ||
var currentRoute = window.location.pathname; | ||
if(currentRoute.substr(0,1) === '/') { | ||
currentRoute = currentRoute.substr(1); | ||
} | ||
this[this.routes[currentRoute]](); | ||
Backbone.history.loadUrl(currentRoute); | ||
} | ||
@@ -102,0 +99,0 @@ |
{ | ||
"name": "node-barefoot" | ||
, "version": "0.0.3" | ||
, "version": "0.0.4" | ||
, "description": "Barefoot makes code sharing between browser and server reality. Write your application once and run it on both ends of the wire." | ||
@@ -5,0 +5,0 @@ , "keywords": [ |
97243
2230