"no-redeclare": "off",
"no-shadow": "off",
"no-undef": "off",
- "no-undefined": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"one-var-declaration-per-line": "off",
drawRrdTable(rrd_summary, unit);
}
- if (graphs.graph === undefined) {
+ if (!graphs.graph) {
graphs.graph = initGraph();
}
});
} else if (ft.history) {
ft.history.destroy();
- ft.history = undefined;
+ delete ft.history;
}
});
}
}
if (ft.history) {
ft.history.destroy();
- ft.history = undefined;
+ delete ft.history;
}
if (ft.errors) {
ft.errors.destroy();
- ft.errors = undefined;
+ delete ft.errors;
}
if (checked_server === "All SERVERS") {
rspamd.queryNeighbours("errors", function () {
function disconnect() {
if (graphs.chart) {
graphs.chart.destroy();
- graphs.chart = undefined;
+ delete graphs.chart;
}
if (graphs.rrd_pie) {
graphs.rrd_pie.destroy();
- graphs.rrd_pie = undefined;
+ delete graphs.rrd_pie;
}
if (graphs.graph) {
graphs.graph.destroy();
- graphs.graph = undefined;
+ delete graphs.graph;
}
if (tables.history) {
tables.history.destroy();
- tables.history = undefined;
+ delete tables.history;
}
if (tables.errors) {
tables.errors.destroy();
- tables.errors = undefined;
+ delete tables.errors;
}
if (tables.symbols) {
tables.symbols.destroy();
- tables.symbols = undefined;
+ delete tables.symbols;
}
stopTimers();