Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #285 from beastridge/gh-pages

Thorax bug fix
  • Loading branch information...
commit ddb3234ce6869aa021bc08a51b89ea5c3fca3066 2 parents 0ae7682 + e0e0ef4
@sindresorhus sindresorhus authored
View
2  labs/architecture-examples/thorax/js/app.js
@@ -1,8 +1,8 @@
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();
});
View
4 labs/dependency-examples/thorax_require/js/main.js
@@ -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();
+
});
Please sign in to comment.
Something went wrong with that request. Please try again.