File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { orderWatchers } from './order-watchers'
7
7
8
8
export default class VueWrapper extends Wrapper implements BaseWrapper {
9
9
constructor ( vm : Component , options : WrapperOptions ) {
10
- super ( vm . _vnode , options )
10
+ super ( vm . _vnode , options , true )
11
11
12
12
// $FlowIgnore : issue with defineProperty
13
13
Object . defineProperty ( this , 'vnode' , {
Original file line number Diff line number Diff line change @@ -34,11 +34,15 @@ export default class Wrapper implements BaseWrapper {
34
34
version: number ;
35
35
isFunctionalComponent: boolean ;
36
36
37
- constructor ( node : VNode | Element , options : WrapperOptions ) {
37
+ constructor (
38
+ node : VNode | Element ,
39
+ options : WrapperOptions ,
40
+ isVueWrapper ? : boolean
41
+ ) {
38
42
const vnode = node instanceof Element ? null : node
39
43
const element = node instanceof Element ? node : node . elm
40
44
// Prevent redefine by VueWrapper
41
- if ( this . constructor . name === 'Wrapper' ) {
45
+ if ( ! isVueWrapper ) {
42
46
// $FlowIgnore
43
47
Object . defineProperty ( this , 'vnode' , {
44
48
get : ( ) => vnode ,
You can’t perform that action at this time.
0 commit comments