Hi, you need to add removeEventListener to all binded Events, so it will destroy clearly. Thanks :)
Btw, in my project i added:
destroyed() { window.removeEventListener('resize', this.resizeWindow); document.removeEventListener('fullscreenchange', this.exitHandler); document.removeEventListener('webkitfullscreenchange', this.exitHandler); document.removeEventListener('mozfullscreenchange', this.exitHandler); document.removeEventListener('MSFullscreenChange', this.exitHandler); },
Hi, you need to add removeEventListener to all binded Events, so it will destroy clearly. Thanks :) Btw, in my project i added:
destroyed() { window.removeEventListener('resize', this.resizeWindow); document.removeEventListener('fullscreenchange', this.exitHandler); document.removeEventListener('webkitfullscreenchange', this.exitHandler); document.removeEventListener('mozfullscreenchange', this.exitHandler); document.removeEventListener('MSFullscreenChange', this.exitHandler); },