diff client/src/components/gauge/Waterlevel.vue @ 2986:7ee9a3ef90d4

client: remove resize event listener from diagrams after they are closed to avoid console errors...
author Markus Kottlaender <markus@intevation.de>
date Tue, 09 Apr 2019 18:48:16 +0200
parents 451d73940c81
children fe88a9b151ca
line wrap: on
line diff
--- a/client/src/components/gauge/Waterlevel.vue	Tue Apr 09 18:38:15 2019 +0200
+++ b/client/src/components/gauge/Waterlevel.vue	Tue Apr 09 18:48:16 2019 +0200
@@ -808,6 +808,9 @@
   },
   updated() {
     this.drawDiagram();
+  },
+  destroyed() {
+    window.addEventListener("resize", debounce(this.drawDiagram));
   }
 };
 </script>