diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-08 10:47:56 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-08 10:47:56 +0300 |
commit | e514ce57b5dfba541564828ef6373c0912a9f7cd (patch) | |
tree | 53d5ef43832e85a7508c9da878e8751cb73ce102 /interface/js/app/rspamd.js | |
parent | 4b6e9116cb35304948332c5d70bb74cf9451b612 (diff) | |
download | rspamd-e514ce57b5dfba541564828ef6373c0912a9f7cd.tar.gz rspamd-e514ce57b5dfba541564828ef6373c0912a9f7cd.zip |
[WebUI] Avoid using "undefined" property
of the global object
Diffstat (limited to 'interface/js/app/rspamd.js')
-rw-r--r-- | interface/js/app/rspamd.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index c60c5889d..9b29ffd6d 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -47,27 +47,27 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config, 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(); |