[bugfix,view][xs]: set default view in DataExplorer to first view if no currentView specified.

This commit is contained in:
Rufus Pollock 2012-04-17 05:19:27 +01:00
parent 9e08d6109b
commit 27b5cf243f

View File

@ -221,6 +221,8 @@ my.DataExplorer = Backbone.View.extend({
}
if (this.state.get('currentView')) {
this.updateNav(this.state.get('currentView'));
} else {
this.updateNav(this.pageViews[0].id);
}
this.router = new Backbone.Router();