diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-11 19:47:36 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-11 19:47:36 -0500 |
| commit | 79897a642e0dbe3d1d4e11d58e3614da682eae7a (patch) | |
| tree | 3f6e34f4ec499ae6136a2bd526468fa3dabdef38 /StoneIsland/www/js/lib/_router.js | |
| parent | 9dbef9843e2a63c04ed26f7c11d184d8925f2eb5 (diff) | |
chisel sizes/colors into product view
Diffstat (limited to 'StoneIsland/www/js/lib/_router.js')
| -rw-r--r-- | StoneIsland/www/js/lib/_router.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js index 47f0ec26..c4019571 100644 --- a/StoneIsland/www/js/lib/_router.js +++ b/StoneIsland/www/js/lib/_router.js @@ -36,7 +36,7 @@ var SiteRouter = Router.extend({ var fn for (var route in this.routes) { fn = this.routes[route] - if (! this.hasOwnProperty(fn)) { + if (! fn in this) { this[fn] = this.default_view(fn) } } @@ -67,6 +67,7 @@ var SiteRouter = Router.extend({ }, product: function(code){ + console.log("FUCK YES") app.view = app.product app.product.load(code) app.product.show() |
