Commit 7bfab60a authored by Oki Uimonen's avatar Oki Uimonen

move backbone.history.start() after controller initialization

parent 4e3769bf
...@@ -8,13 +8,13 @@ $(function () { ...@@ -8,13 +8,13 @@ $(function () {
// After we initialize the app, we want to kick off the router // After we initialize the app, we want to kick off the router
// and controller, which will handle initializing our Views // and controller, which will handle initializing our Views
TodoMVC.App.on('start', function () { TodoMVC.App.on('start', function () {
Backbone.history.start();
var controller = new TodoMVC.Controller(); var controller = new TodoMVC.Controller();
controller.router = new TodoMVC.Router({ controller.router = new TodoMVC.Router({
controller: controller controller: controller
}); });
controller.start(); controller.start();
Backbone.history.start();
}); });
// start the TodoMVC app (defined in js/TodoMVC.js) // start the TodoMVC app (defined in js/TodoMVC.js)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment