Some minor bug fixing

This commit is contained in:
Max G
2020-01-03 01:54:11 +00:00
parent abb4e20ec3
commit 68effaa5c3
4 changed files with 8 additions and 8 deletions

View File

@@ -249,12 +249,13 @@
},
beforeDestroy(){
console.log('Unbinging all events')
window.removeEventListener('scroll', this.onScroll)
window.removeEventListener('hashchange', this.hashChangeAction)
document.removeEventListener('visibilitychange', this.visibiltyChangeAction)
this.$off() // Remove all event listeners
this.$bus.$off()
//We want to remove event listeners, but something here is messing them up and preventing ALL event listeners from working
// this.$off() // Remove all event listeners
// this.$bus.$off()
},
mounted() {
//Loads initial batch and tags