summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-11 17:03:42 -0400
committerJules Laplace <jules@okfoc.us>2015-09-11 17:03:42 -0400
commitc273cadba219ed954af7d2076e2c32e00b38ad03 (patch)
treefc76d0514fdd7c88ec5748ff6da6ef32a4966b38 /StoneIsland/www/js
parentd73a4b1c5a2540077607dcc4001acbae85980ae4 (diff)
sketch out html based on mock
Diffstat (limited to 'StoneIsland/www/js')
-rw-r--r--StoneIsland/www/js/vendor/view/router.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/StoneIsland/www/js/vendor/view/router.js b/StoneIsland/www/js/vendor/view/router.js
index 36f86b5d..82cf9e12 100644
--- a/StoneIsland/www/js/vendor/view/router.js
+++ b/StoneIsland/www/js/vendor/view/router.js
@@ -1,12 +1,16 @@
var Router = View.extend({
+ routeByHash: false,
+
go: function(url){
this.parseRoute(url)
},
route: function(){
- this.originalPath = window.location.pathname
- this.parseRoute(window.location.pathname)
+ var path = this.routeByHash ? window.location.hash.substr(0) : window.location.pathname
+ path = path || "/"
+ this.originalPath = path
+ this.parseRoute(path)
},
parseRoute: function(pathname){