[#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:
@@ -7,6 +7,7 @@ $(function() {
|
|||||||
el: window.$container
|
el: window.$container
|
||||||
, model: dataset
|
, model: dataset
|
||||||
});
|
});
|
||||||
|
Backbone.history.start();
|
||||||
setupLoadFromWebstore(function(dataset) {
|
setupLoadFromWebstore(function(dataset) {
|
||||||
window.dataExplorer.remove();
|
window.dataExplorer.remove();
|
||||||
window.dataExplorer = null;
|
window.dataExplorer = null;
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ my.DataExplorer = Backbone.View.extend({
|
|||||||
|
|
||||||
this.router = new Backbone.Router();
|
this.router = new Backbone.Router();
|
||||||
this.setupRouting();
|
this.setupRouting();
|
||||||
Backbone.history.start();
|
|
||||||
|
|
||||||
// retrieve basic data like headers etc
|
// retrieve basic data like headers etc
|
||||||
// note this.model and dataset returned are the same
|
// note this.model and dataset returned are the same
|
||||||
|
|||||||
Reference in New Issue
Block a user