mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-08 06:51:43 -04:00
(vue) rename destroyed to unmounted and beforeDestroy to beforeUnmount
https://v3-migration.vuejs.org/breaking-changes/#other-minor-changes
This commit is contained in:
parent
348402b4a6
commit
d7ead48168
@ -81,10 +81,8 @@ export default Vue.extend({
|
||||
document.addEventListener('click', this.documentClicked);
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
if (process.client) {
|
||||
document.removeEventListener('click', this.documentClicked);
|
||||
}
|
||||
unmounted() {
|
||||
document.removeEventListener('click', this.documentClicked);
|
||||
},
|
||||
methods: {
|
||||
getDayClass(d: Day): string {
|
||||
|
@ -35,10 +35,8 @@ export default {
|
||||
document.addEventListener('click', this.documentClicked);
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
if (process.client) {
|
||||
document.removeEventListener('click', this.documentClicked);
|
||||
}
|
||||
unmounted() {
|
||||
document.removeEventListener('click', this.documentClicked);
|
||||
},
|
||||
methods: {
|
||||
documentClicked() {
|
||||
|
@ -443,11 +443,9 @@ export default {
|
||||
window.addEventListener('scroll', this.updateShown);
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
if (process.client) {
|
||||
document.removeEventListener('click', this.documentClicked);
|
||||
document.removeEventListener('scroll', this.updateShown);
|
||||
}
|
||||
unmounted() {
|
||||
document.removeEventListener('click', this.documentClicked);
|
||||
document.removeEventListener('scroll', this.updateShown);
|
||||
},
|
||||
methods: {
|
||||
isActiveRoute(link) {
|
||||
|
@ -108,7 +108,7 @@ export default Vue.extend({
|
||||
};
|
||||
},
|
||||
},
|
||||
beforeDestroy() {
|
||||
beforeUnmount() {
|
||||
this.hide();
|
||||
},
|
||||
methods: {
|
||||
|
@ -26,10 +26,8 @@ export default {
|
||||
window.addEventListener('scroll', this.updateShown);
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
if (process.client) {
|
||||
document.removeEventListener('scroll', this.updateShown);
|
||||
}
|
||||
unmounted() {
|
||||
document.removeEventListener('scroll', this.updateShown);
|
||||
},
|
||||
methods: {
|
||||
scroll() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user