forked from platypush/platypush
Deallocate the color converter when the light component is unmounted
This commit is contained in:
parent
e9371ac5d0
commit
78e250186b
1 changed files with 5 additions and 0 deletions
|
@ -192,6 +192,11 @@ export default {
|
||||||
|
|
||||||
this.colorConverter = new ColorConverter(ranges)
|
this.colorConverter = new ColorConverter(ranges)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
unmounted() {
|
||||||
|
if (this.colorConverter)
|
||||||
|
delete this.colorConverter
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue