Created
October 5, 2014 23:28
-
-
Save edjasperdev/2b86990c64ea34e66cd3 to your computer and use it in GitHub Desktop.
Initializing Backbone in application.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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