comparison client/src/components/gauge/Waterlevel.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 5ada194e27fc
children 492c30ca3142
comparison
equal deleted inserted replaced
3066:e22ad52cc252 3067:0ffa9d418959
1001 }, 1001 },
1002 updated() { 1002 updated() {
1003 this.drawDiagram(); 1003 this.drawDiagram();
1004 }, 1004 },
1005 destroyed() { 1005 destroyed() {
1006 window.addEventListener("resize", debounce(this.drawDiagram)); 1006 window.removeEventListener("resize", debounce(this.drawDiagram));
1007 } 1007 }
1008 }; 1008 };
1009 </script> 1009 </script>