title: [Vue warn]: Error in event handler for "upload-success": "TypeError: fns.apply is not a function"
body: <p>I'm using this <a href="https://vuejsexamples.com/a-simple-upload-multiple-image-component-for-vuejs/" rel="nofollow noreferrer">plugin</a> to upload images. But I'm getting this errors</p>
  
  <blockquote>
    <p>[Vue warn]: Error in event handler for "upload-success": "TypeError:
    fns.apply is not a function" found in --->  at
    node_modules/vue-upload-multiple-image/src/components/VueUploadMultipleImage.vue
     at
    assets/frontend/js/components/VueUploadMultipleImages.vue </p>
  </blockquote>
  
  <p>Here is my code,</p>
  
  <pre><code>&lt;template&gt;
      &lt;div class="vue-upload-multiple-image" style='display: flex; justify-content: left;'&gt;
          &lt;vue-upload-multiple-image
                  @upload-success='uploadImageSuccess'
                  @before-remove='beforeRemove'
                  @edit-image='editImage'
                  @data-change='data_change'
                  :dragText="dragText"
                  :browseText="browseText"
                  :dropText="dropText"
                  :markIsPrimaryText="markIsPrimaryText"
                  :popupText="popupText"
                  :primaryText="primaryText"
                  :data-images='images'&gt;
          &lt;/vue-upload-multiple-image&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
      import VueUploadMultipleImage from 'vue-upload-multiple-image'
      import axios from 'axios'
  
      export default {
          name: 'uploader',
          data: function () {
              return {
                  dragText: dragText,
                  browseText: browseText,
                  primaryText: primaryText,
                  markIsPrimaryText: markIsPrimaryText,
                  popupText: popupText,
                  dropText: dropText,
                  maxImage: maxImage,
                  showPrimary: showPrimary,
                  accept: 'image/gif,image/jpeg,image/png,image/bmp,image/jpg',
                  dataImages: [],
                  multiple: true,
                  images: [],
                  uploadImageSuccess : '',
                  beforeRemove: '',
                  editImage : '',
              }
          },
          components: {
              VueUploadMultipleImage
          },
          methods: {
              data_change(data) {
                  console.log(data);
                  alert('asasa');
              }
          }
      }
  
  new Vue({
      el: "#car-image-upload",
      components: {
          'uploader': VueUploadMultipleImages
      },
  })
  &lt;/script&gt;
  
  &lt;div id="car-image-upload"&gt;&lt;uploader&gt;&lt;/uploader&gt;&lt;/div&gt;
  </code></pre>