Vue lifecycle changes
destroyed -> unmounted, beforeDestroy -> beforeUnmount
This commit is contained in:
parent
ae312db784
commit
2c5b386af9
18 changed files with 20 additions and 20 deletions
|
|
@ -561,7 +561,7 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
beforeUnmount() {
|
||||
emitter.off('audio-playback-ended', this.audioPlaybackEnded);
|
||||
this.$audioPlayer.pause();
|
||||
this.stopRRTimer();
|
||||
|
|
@ -571,7 +571,7 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
destroyed() {
|
||||
unmounted() {
|
||||
this.$matrix.off("Room.timeline", this.onEvent);
|
||||
this.$matrix.off("RoomMember.typing", this.onUserTyping);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue