Commit 0ce79857 authored by jh3y's avatar jh3y

Resolves #1270 by moving backbone.history.start invocation

parent ac75ffae
...@@ -71,6 +71,9 @@ ...@@ -71,6 +71,9 @@
<script src="js/TodoMVC.TodoList.js"></script> <script src="js/TodoMVC.TodoList.js"></script>
<script> <script>
$(function () { $(function () {
TodoMVC.on('start', function() {
Backbone.history.start();
});
// start the TodoMVC app (defined in js/TodoMVC.js) // start the TodoMVC app (defined in js/TodoMVC.js)
TodoMVC.start(); TodoMVC.start();
}); });
......
...@@ -21,7 +21,6 @@ window.TodoMVC = new App(); ...@@ -21,7 +21,6 @@ window.TodoMVC = new App();
}); });
})(); })();
TodoMVC.on('start', function () { TodoMVC.on('before:start', function () {
TodoMVC.setRootLayout(); TodoMVC.setRootLayout();
Backbone.history.start();
}); });
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