From 1535c5954057ae98fd6dc316794195adc4763c41 Mon Sep 17 00:00:00 2001 From: Totty Date: Mon, 21 Oct 2013 09:21:33 +0100 Subject: [PATCH] Fix #85 The events fired by the app router have a "route:" prefix. (as explained here http://stackoverflow.com/questions/14410242/backbone-router-doesnt-work-with-requirejs) --- _posts/2011-10-10-organizing-backbone-using-modules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2011-10-10-organizing-backbone-using-modules.md b/_posts/2011-10-10-organizing-backbone-using-modules.md index 4f68ba31..11893e57 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();