I am aware that using the arrow syntax for a method can cause 'this' to not be mapped to the Vue instance. In my case, I am utilizing lodash.debounce and I don't think I'm using the arrow syntax here?
Encountering Error: Cannot read property '$emit' of undefined
methods: {
onChange: debounce(function(el) {
this.$emit('change', el.target.value)
}, 1000)
}
Could there be a syntax error in how I have implemented this debounce function without the use of arrow notation?