Skip to content

Instantly share code, notes, and snippets.

@edjasperdev
Created October 5, 2014 23:28
Show Gist options
  • Save edjasperdev/2b86990c64ea34e66cd3 to your computer and use it in GitHub Desktop.
Save edjasperdev/2b86990c64ea34e66cd3 to your computer and use it in GitHub Desktop.
Initializing Backbone in application.js
initialize: function() {
new IdeaVoter.Routers.Ideas();
Backbone.history.start();
}
};
$(document).ready(function(){
IdeaVoter.initialize();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment