Commit ddb3234c authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #285 from beastridge/gh-pages

Thorax bug fix
parents 0ae76828 e0e0ef4c
var ENTER_KEY = 13;
$(function() {
Backbone.history.start();
// Kick things off by creating the **App**.
var view = new Thorax.Views['app']();
$('body').append(view.el);
Backbone.history.start();
});
......@@ -39,9 +39,11 @@ require([
], function( AppView, TodoMVCRouter ) {
// Initialize routing and start Backbone.history()
new TodoMVCRouter();
Backbone.history.start();
// Initialize the application view
var view = new AppView();
$('body').append(view.el);
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