Created
October 18, 2011 04:14
-
-
Save willrjmarshall/1294597 to your computer and use it in GitHub Desktop.
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
var Threshold = { | |
Models: {}, | |
Collections: {}, | |
Views: {}, | |
Routers: {}, | |
init: function() { | |
if (window.url == "blah") { | |
projectShowInit(); | |
} else { | |
projectsInit(); | |
} | |
Backbone.history.start(); | |
} | |
}; | |
var projectShowInit = function() { | |
window.ProjectView = new Threshold.Routers.ProjectShow(); | |
} | |
var projectsInit = function() { | |
window.ProjectDashboard = new Threshold.Routers.ProjectDashboard(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment