From e474ead4fde530b1cb52f96e827269371120cb89 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 12 Nov 2015 00:14:04 -0500 Subject: form serialization class --- StoneIsland/www/js/lib/_router.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/lib/_router.js') diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js index d010abef..8742ce44 100644 --- a/StoneIsland/www/js/lib/_router.js +++ b/StoneIsland/www/js/lib/_router.js @@ -33,10 +33,11 @@ var SiteRouter = Router.extend({ }, initialize: function(){ + console.log("HI!") var fn for (var route in this.routes) { fn = this.routes[route] - if (! fn in this) { + if (! this[fn]) { this[fn] = this.default_view(fn) } } -- cgit v1.2.3-70-g09d2