Remove global event listeners before destroy
This commit is contained in:
parent
b557b4a715
commit
92b399e644
2 changed files with 8 additions and 0 deletions
|
|
@ -103,6 +103,10 @@ export default {
|
|||
},
|
||||
|
||||
beforeDestroy: function() {
|
||||
// Remove global signal listener to change the GPU preview state
|
||||
this.$root.$off("globalTogglePreview");
|
||||
// Remove global signal listener to flash the stream element
|
||||
this.$root.$off("globalFlashStream");
|
||||
// Disconnect the size observer
|
||||
this.sizeObserver.disconnect();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue