Window Vue Удалить слушатель событий

// You can use the destroy() method to remove the event listener.
// The 'this' is bound automatically inside the listener somehow

mounted() {
    window.addEventListener('scroll', this.handleScroll)
},

destroyed() {
    window.removeEventListener('scroll', this.handleScroll)
},
Index out of bounds