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

First test if the object exists, before consulting existence of key #46

Closed timmeeuwissen closed 5 years ago

timmeeuwissen commented 5 years ago

It is not garanteed that e.g. compute exists. In example, if the parent implements a head method, the compute object on the parent is created, but it hasn't been created yet in the local scope (this$1). The error message will be: cannot read property '$metainfo' of undefined

alexjoverm commented 5 years ago

Fixed by 1.7.0