alexjoverm / v-runtime-template

Vue component for compiling templates on the fly using a v-html like API
MIT License
605 stars 72 forks source link

Bug on building methods #34

Closed carmas123 closed 5 years ago

carmas123 commented 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];} );

rkhunter commented 5 years ago

:+1:

alexjoverm commented 5 years ago

Fixed on 1.7.1 6289c88c6812df2037f3e138e35fad75c4fd71cc