test: fix mixin case

This commit is contained in:
Evan You
2019-02-26 21:45:13 -05:00
parent ff9cddd46f
commit e151d34100
3 changed files with 6 additions and 8 deletions

View File

@@ -145,6 +145,7 @@ class InternalComponent implements PublicInstanceMethods {
// so that the extended class constructor (and property initializers) can
// access $props.
this.$props = props
Object.assign(this, props)
}
if (__COMPAT__) {
;(this as any)._eventEmitter = new EventEmitter(this)