Closed carmas123 closed 5 years ago
Hi I think that there is a bug when we build passthrough methods.
Object.keys(methods).forEach(e => {if(typeof this.$options.methods[e]==="undefined") passthrough.methods[e] = methods[e];} );
We need to change into Object.keys(methods).forEach(e => {if(typeof this.$options.methods==="undefined" || typeof this.$options.methods[e]==="undefined") passthrough.methods[e] = methods[e];} );
Object.keys(methods).forEach(e => {if(typeof this.$options.methods==="undefined" || typeof this.$options.methods[e]==="undefined") passthrough.methods[e] = methods[e];} );
:+1:
Fixed on 1.7.1 6289c88c6812df2037f3e138e35fad75c4fd71cc
Hi I think that there is a bug when we build passthrough methods.
Object.keys(methods).forEach(e => {if(typeof this.$options.methods[e]==="undefined") passthrough.methods[e] = methods[e];} );
We need to change into
Object.keys(methods).forEach(e => {if(typeof this.$options.methods==="undefined" || typeof this.$options.methods[e]==="undefined") passthrough.methods[e] = methods[e];} );