summaryrefslogtreecommitdiffstats
path: root/examples/modular-backbone/js/router.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/modular-backbone/js/router.js')
-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 {