fix minor renames

This commit is contained in:
Henry Jameson 2022-03-24 13:50:22 +02:00
parent 0eb9c019e4
commit 3fb647b34b
2 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ const ImageCropper = {
}
},
methods: {
destroy () {
unmounted () {
if (this.cropper) {
this.cropper.destroy()
}
@ -117,7 +117,7 @@ const ImageCropper = {
const fileInput = this.$refs.input
fileInput.addEventListener('change', this.readFile)
},
beforeDestroy: function () {
beforeUnmount: function () {
// remove the event listeners
const trigger = this.getTriggerDOM()
if (trigger) {