destroyed -> unmounted
This commit is contained in:
parent
72956e2343
commit
caed89f0ae
12 changed files with 12 additions and 12 deletions
|
@ -122,7 +122,7 @@ const Timeline = {
|
|||
window.addEventListener('keydown', this.handleShortKey)
|
||||
setTimeout(this.determineVisibleStatuses, 250)
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
window.removeEventListener('scroll', this.handleScroll)
|
||||
window.removeEventListener('keydown', this.handleShortKey)
|
||||
if (typeof document.hidden !== 'undefined') document.removeEventListener('visibilitychange', this.handleVisibilityChange, false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue