fix minor renames
This commit is contained in:
parent
0eb9c019e4
commit
3fb647b34b
2 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -17,7 +17,7 @@ library.add(
|
|||
const withLoadMore = ({
|
||||
fetch, // function to fetch entries and return a promise
|
||||
select, // function to select data from store
|
||||
destroy, // function called at "destroyed" lifecycle
|
||||
unmounted, // function called at "destroyed" lifecycle
|
||||
childPropName = 'entries', // name of the prop to be passed into the wrapped component
|
||||
additionalPropNames = [] // additional prop name list of the wrapper component
|
||||
}) => (WrappedComponent) => {
|
||||
|
@ -42,7 +42,7 @@ const withLoadMore = ({
|
|||
},
|
||||
unmounted () {
|
||||
window.removeEventListener('scroll', this.scrollLoad)
|
||||
destroy && destroy(this.$props, this.$store)
|
||||
unmounted && unmounted(this.$props, this.$store)
|
||||
},
|
||||
methods: {
|
||||
// Entries is not a computed because computed can't track the dynamic
|
||||
|
|
Loading…
Reference in a new issue