mirror of https://gitee.com/bigwinds/arangodb
fixed bug jan discovered
This commit is contained in:
parent
e693a6cdcd
commit
11b11412b6
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue