From f30e2913a75c00ecae0643b1036088e8057a3177 Mon Sep 17 00:00:00 2001 From: Garrick Cheung Date: Sun, 16 Dec 2012 15:31:06 -0800 Subject: [PATCH] Some cleanup to app.js --- labs/architecture-examples/neuro/js/app.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/labs/architecture-examples/neuro/js/app.js b/labs/architecture-examples/neuro/js/app.js index 317ee307af..34319e431b 100755 --- a/labs/architecture-examples/neuro/js/app.js +++ b/labs/architecture-examples/neuro/js/app.js @@ -13,7 +13,6 @@ collection: undefined, options: { - routerPath: '', templates: { todoItem: document.id('todoItemTemplate'), todoCount: document.id('todoCount'), @@ -55,7 +54,7 @@ var _this = this; var router = this.router = new Neuro.Router({ - pattern: this.options.initialPath + '#/:filter:', + pattern: '#/:filter:', callback: function(route, filter){ _this._onClickFilter(filter); } @@ -209,9 +208,7 @@ }); window.App = new App({ - element: 'todoapp', - // initialPath: '/labs/architecture-examples/neuro/' - initialPath: '' + element: 'todoapp' }); })( window ); \ No newline at end of file