Mercurial > gemma
diff client/src/components/gauge/HydrologicalConditions.vue @ 3067:0ffa9d418959
client: remove window resize listeners when closing diagram
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 17 Apr 2019 09:30:00 +0200 |
parents | cebbc1a8987b |
children | 492c30ca3142 |
line wrap: on
line diff
--- a/client/src/components/gauge/HydrologicalConditions.vue Tue Apr 16 15:34:02 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Wed Apr 17 09:30:00 2019 +0200 @@ -890,7 +890,7 @@ this.drawDiagram(); }, destroyed() { - window.addEventListener("resize", debounce(this.drawDiagram)); + window.removeEventListener("resize", debounce(this.drawDiagram)); } }; </script>