diff --git a/_posts/2011-10-10-organizing-backbone-using-modules.md b/_posts/2011-10-10-organizing-backbone-using-modules.md index 4f68ba31..e26404f4 100644 --- a/_posts/2011-10-10-organizing-backbone-using-modules.md +++ b/_posts/2011-10-10-organizing-backbone-using-modules.md @@ -247,7 +247,7 @@ define([ var initialize = function(){ var app_router = new AppRouter; - app_router.on('showProjects', function(){ + app_router.on('route:showProjects', function(){ // Call render on the module we loaded in via the dependency array // 'views/projects/list' var projectListView = new ProjectListView(); @@ -255,11 +255,11 @@ define([ }); // As above, call render on our loaded module // 'views/users/list' - app_router.on('showUsers', function(){ + app_router.on('route:showUsers', function(){ var userListView = new UserListView(); userListView.render(); }); - app_router.on('defaultAction', function(actions){ + app_router.on('route:defaultAction', function(actions){ // We have no matching route, lets just log what the URL was console.log('No route:', actions); });