summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Höreth <a.hoereth@gmail.com>2013-03-24 02:48:15 +0100
committerAlexander Höreth <a.hoereth@gmail.com>2013-03-24 02:48:15 +0100
commitb690da7af0177529d76af45dd939c72376051719 (patch)
tree86454fed5a5356a53e12a28809b1577f166d3520
parent404bea77ec9d8d23a94b4ee9e0d643b4871773d6 (diff)
downloadbackbonetutorials-b690da7af0177529d76af45dd939c72376051719.zip
backbonetutorials-b690da7af0177529d76af45dd939c72376051719.tar.gz
backbonetutorials-b690da7af0177529d76af45dd939c72376051719.tar.bz2
Fix for footer only showing up when entering default page initially. Footer also should load when entering e.g. "modular-backbone/#/projects" initially.
-rw-r--r--examples/modular-backbone/js/router.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/modular-backbone/js/router.js b/examples/modular-backbone/js/router.js
index 5621f2f..032d602 100644
--- a/examples/modular-backbone/js/router.js
+++ b/examples/modular-backbone/js/router.js
@@ -44,14 +44,14 @@ define([
// We have no matching route, lets display the home page
var homeView = new HomeView();
homeView.render();
-
- // unlike the above, we don't call render on this view
- // as it will handle the render call internally after it
- // loads data
- var footerView = new FooterView();
-
});
+ // Unlike the above, we don't call render on this view as it will handle
+ // the render call internally after it loads data. Further more we load it
+ // outside of an on-route function to have it loaded no matter which page is
+ // loaded initially.
+ var footerView = new FooterView();
+
Backbone.history.start();
};
return {