fix: life cycle hook naming
This commit is contained in:
parent
db49b9b532
commit
ecc3d3cf3f
7 changed files with 7 additions and 7 deletions
|
@ -153,7 +153,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
document.addEventListener('click', this.hideDatePopup)
|
document.addEventListener('click', this.hideDatePopup)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeUnmount() {
|
||||||
document.removeEventListener('click', this.hideDatePopup)
|
document.removeEventListener('click', this.hideDatePopup)
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
@ -191,7 +191,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
document.addEventListener('click', this.hideSearchResultsHandler)
|
document.addEventListener('click', this.hideSearchResultsHandler)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeUnmount() {
|
||||||
document.removeEventListener('click', this.hideSearchResultsHandler)
|
document.removeEventListener('click', this.hideSearchResultsHandler)
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
@ -27,7 +27,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
document.addEventListener('click', this.hidePopup)
|
document.addEventListener('click', this.hidePopup)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeUnmount() {
|
||||||
document.removeEventListener('click', this.hidePopup)
|
document.removeEventListener('click', this.hidePopup)
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
document.addEventListener('click', this.hide)
|
document.addEventListener('click', this.hide)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeUnmount() {
|
||||||
document.removeEventListener('click', this.hide)
|
document.removeEventListener('click', this.hide)
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|
|
@ -72,7 +72,7 @@ export default {
|
||||||
document.addEventListener('click', this.hidePopup)
|
document.addEventListener('click', this.hidePopup)
|
||||||
this.interval = setInterval(this.loadNotifications, LOAD_NOTIFICATIONS_INTERVAL)
|
this.interval = setInterval(this.loadNotifications, LOAD_NOTIFICATIONS_INTERVAL)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeUnmount() {
|
||||||
document.removeEventListener('click', this.hidePopup)
|
document.removeEventListener('click', this.hidePopup)
|
||||||
clearInterval(this.interval)
|
clearInterval(this.interval)
|
||||||
},
|
},
|
||||||
|
|
|
@ -83,7 +83,7 @@ export default {
|
||||||
|
|
||||||
this.changeInterval = setInterval(this.updateDueDate, 1000)
|
this.changeInterval = setInterval(this.updateDueDate, 1000)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeUnmount() {
|
||||||
if (this.changeInterval) {
|
if (this.changeInterval) {
|
||||||
clearInterval(this.changeInterval)
|
clearInterval(this.changeInterval)
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,7 +149,7 @@ export default {
|
||||||
this.task = this.theTask
|
this.task = this.theTask
|
||||||
document.addEventListener('click', this.hideDeferDueDatePopup)
|
document.addEventListener('click', this.hideDeferDueDatePopup)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeUnmount() {
|
||||||
document.removeEventListener('click', this.hideDeferDueDatePopup)
|
document.removeEventListener('click', this.hideDeferDueDatePopup)
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Reference in a new issue