From cd78dbd0d8ebdde18adac2318ddfec079851c411 Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Tue, 28 Sep 2021 18:14:39 +0200 Subject: [PATCH] Fix typos in resizeObserver --- lib/www/client/source/src/components/graph-guns-depth.vue | 2 +- lib/www/client/source/src/components/graph-guns-pressure.vue | 2 +- lib/www/client/source/src/components/graph-guns-timing.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/www/client/source/src/components/graph-guns-depth.vue b/lib/www/client/source/src/components/graph-guns-depth.vue index 9af9e32..6abd896 100644 --- a/lib/www/client/source/src/components/graph-guns-depth.vue +++ b/lib/www/client/source/src/components/graph-guns-depth.vue @@ -353,7 +353,7 @@ export default { beforeDestroy () { if (this.resizeObserver) { - this.resizeObserver.observe(this.$refs.graphViolin); + this.resizeObserver.unobserve(this.$refs.graphViolin); this.resizeObserver.unobserve(this.$refs.graphSeries); } } diff --git a/lib/www/client/source/src/components/graph-guns-pressure.vue b/lib/www/client/source/src/components/graph-guns-pressure.vue index 63d56cd..582d7cb 100644 --- a/lib/www/client/source/src/components/graph-guns-pressure.vue +++ b/lib/www/client/source/src/components/graph-guns-pressure.vue @@ -370,7 +370,7 @@ export default { beforeDestroy () { if (this.resizeObserver) { - this.resizeObserver.observe(this.$refs.graphViolin); + this.resizeObserver.unobserve(this.$refs.graphViolin); this.resizeObserver.unobserve(this.$refs.graphSeries); } } diff --git a/lib/www/client/source/src/components/graph-guns-timing.vue b/lib/www/client/source/src/components/graph-guns-timing.vue index 7373c6b..69f70ca 100644 --- a/lib/www/client/source/src/components/graph-guns-timing.vue +++ b/lib/www/client/source/src/components/graph-guns-timing.vue @@ -353,7 +353,7 @@ export default { beforeDestroy () { if (this.resizeObserver) { - this.resizeObserver.observe(this.$refs.graphViolin); + this.resizeObserver.unobserve(this.$refs.graphViolin); this.resizeObserver.unobserve(this.$refs.graphSeries); } }