[#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).

This commit is contained in:
Rufus Pollock 2012-01-15 17:41:55 +00:00
parent 04279b0150
commit 246cdedcd2
2 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,7 @@ $(function() {
el: window.$container
, model: dataset
});
Backbone.history.start();
setupLoadFromWebstore(function(dataset) {
window.dataExplorer.remove();
window.dataExplorer = null;

View File

@ -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