1
0
Fork 0

fixed bug jan discovered

This commit is contained in:
scottashton 2014-03-05 11:20:55 +01:00
parent e693a6cdcd
commit 11b11412b6
1 changed files with 5 additions and 2 deletions

View File

@ -42,8 +42,10 @@
this.bind('all', function(trigger, args) {
var routeData = trigger.split(":");
if (trigger === "route") {
if (this.currentRoute === "dashboard") {
if (this.currentRoute === "dashboard" && this.dashboardView) {
this.dashboardView.stopUpdating();
} else if (args === "dashboard") {
delete this.dashboardView;
}
this.currentRoute = args;
}
@ -347,7 +349,8 @@
this.dashboardView = new dashboardView({
collection: this.statisticsCollection,
description: this.statisticsDescription,
documentStore: window.arangoDocumentsStore
documentStore: window.arangoDocumentsStore,
dygrpahConfig : window.dygraphConfig
});
}
this.dashboardView.render();