Skip to content

Instantly share code, notes, and snippets.

Created July 11, 2012 06:34
Show Gist options
  • Save anonymous/3088404 to your computer and use it in GitHub Desktop.
Save anonymous/3088404 to your computer and use it in GitHub Desktop.
delete model
movieDb.Router = Backbone.Router.extend({
routes:{
'': 'landPage',
'home': 'landPage',
'login': 'login',
'signup': 'signup'
},
landPage: function(p){
$('div#homepage').empty();
},
login: function(p){
new loginViews(); // Calls its own model
},
signup: function(p){
new signupViews(); // Calls its own model
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment