diff options
author | Thomas Davis <thomasalwyndavis@gmail.com> | 2013-04-18 14:53:43 +0000 |
---|---|---|
committer | Thomas Davis <thomasalwyndavis@gmail.com> | 2013-04-18 14:53:43 +0000 |
commit | 2fcd4215df4fa6db51a404773dbdd7328b138a8e (patch) | |
tree | 092a0e988c21e72b4f48f4da2e19957381f78cd8 /examples | |
parent | 02cd263408b21bc63fe8fa0f8f760db4c4fcbf1a (diff) | |
parent | 04ece2186e4957d3d8fb39a55680d042bb0746f2 (diff) | |
download | backbonetutorials-2fcd4215df4fa6db51a404773dbdd7328b138a8e.zip backbonetutorials-2fcd4215df4fa6db51a404773dbdd7328b138a8e.tar.gz backbonetutorials-2fcd4215df4fa6db51a404773dbdd7328b138a8e.tar.bz2 |
Merge branch 'gh-pages' of github.com:thomasdavis/backbonetutorials into gh-pages
Diffstat (limited to 'examples')
-rw-r--r-- | examples/modular-backbone/js/router.js | 12 |
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 { |