From 246cdedcd292286ab2391376b08e98f2fba2568b Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Sun, 15 Jan 2012 17:41:55 +0000 Subject: [PATCH] [#19,routing][xs]: move history out to external calling code as we need to be able to reload the app (e.g. to change data source). --- demo/js/app.js | 1 + src/view.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/js/app.js b/demo/js/app.js index 470f7b34..33431f4f 100755 --- a/demo/js/app.js +++ b/demo/js/app.js @@ -7,6 +7,7 @@ $(function() { el: window.$container , model: dataset }); + Backbone.history.start(); setupLoadFromWebstore(function(dataset) { window.dataExplorer.remove(); window.dataExplorer = null; diff --git a/src/view.js b/src/view.js index 025e6f3d..064795f5 100644 --- a/src/view.js +++ b/src/view.js @@ -98,7 +98,6 @@ my.DataExplorer = Backbone.View.extend({ this.router = new Backbone.Router(); this.setupRouting(); - Backbone.history.start(); // retrieve basic data like headers etc // note this.model and dataset returned are the same