forked from AkkomaGang/akkoma-fe
destroyed -> unmounted
This commit is contained in:
parent
72956e2343
commit
caed89f0ae
12 changed files with 12 additions and 12 deletions
|
@ -9,7 +9,7 @@ const Bookmarks = {
|
|||
components: {
|
||||
Timeline
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
this.$store.commit('clearTimeline', { timeline: 'bookmarks' })
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ const Chat = {
|
|||
})
|
||||
this.setChatLayout()
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
window.removeEventListener('scroll', this.handleScroll)
|
||||
window.removeEventListener('resize', this.handleLayoutChange)
|
||||
this.unsetChatLayout()
|
||||
|
|
|
@ -98,7 +98,7 @@ const MediaModal = {
|
|||
document.addEventListener('keyup', this.handleKeyupEvent)
|
||||
document.addEventListener('keydown', this.handleKeydownEvent)
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
window.removeEventListener('popstate', this.hide)
|
||||
document.removeEventListener('keyup', this.handleKeyupEvent)
|
||||
document.removeEventListener('keydown', this.handleKeydownEvent)
|
||||
|
|
|
@ -29,7 +29,7 @@ const MobilePostStatusButton = {
|
|||
}
|
||||
window.addEventListener('resize', this.handleOSK)
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
if (this.autohideFloatingPostButton) {
|
||||
this.deactivateFloatingPostButtonAutohide()
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ export default {
|
|||
}
|
||||
this.$store.dispatch('trackPoll', this.pollId)
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
this.$store.dispatch('untrackPoll', this.pollId)
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -178,7 +178,7 @@ const Popover = {
|
|||
created () {
|
||||
document.addEventListener('click', this.onClickOutside)
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
document.removeEventListener('click', this.onClickOutside)
|
||||
this.hidePopover()
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ const PublicAndExternalTimeline = {
|
|||
created () {
|
||||
this.$store.dispatch('startFetchingTimeline', { timeline: 'publicAndExternal' })
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
this.$store.dispatch('stopFetchingTimeline', 'publicAndExternal')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ const PublicTimeline = {
|
|||
created () {
|
||||
this.$store.dispatch('startFetchingTimeline', { timeline: 'public' })
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
this.$store.dispatch('stopFetchingTimeline', 'public')
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ const TagTimeline = {
|
|||
this.$store.dispatch('startFetchingTimeline', { timeline: 'tag', tag: this.tag })
|
||||
}
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
this.$store.dispatch('stopFetchingTimeline', 'tag')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
|||
created () {
|
||||
this.refreshRelativeTimeObject()
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
clearTimeout(this.interval)
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -46,7 +46,7 @@ const UserProfile = {
|
|||
this.load(routeParams.name || routeParams.id)
|
||||
this.tab = get(this.$route, 'query.tab', defaultTabKey)
|
||||
},
|
||||
destroyed () {
|
||||
unmounted () {
|
||||
this.stopFetching()
|
||||
},
|
||||
computed: {
|
||||
|
|
Loading…
Reference in a new issue