File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 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'
77
88export default class VueWrapper extends Wrapper implements BaseWrapper {
99 constructor ( vm : Component , options : WrapperOptions ) {
10- super ( vm . _vnode , options )
10+ super ( vm . _vnode , options , true )
1111
1212 // $FlowIgnore : issue with defineProperty
1313 Object . defineProperty ( this , 'vnode' , {
Original file line number Diff line number Diff line change @@ -34,11 +34,15 @@ export default class Wrapper implements BaseWrapper {
3434 version: number ;
3535 isFunctionalComponent: boolean ;
3636
37- constructor ( node : VNode | Element , options : WrapperOptions ) {
37+ constructor (
38+ node : VNode | Element ,
39+ options : WrapperOptions ,
40+ isVueWrapper ? : boolean
41+ ) {
3842 const vnode = node instanceof Element ? null : node
3943 const element = node instanceof Element ? node : node . elm
4044 // Prevent redefine by VueWrapper
41- if ( this . constructor . name === 'Wrapper' ) {
45+ if ( ! isVueWrapper ) {
4246 // $FlowIgnore
4347 Object . defineProperty ( this , 'vnode' , {
4448 get : ( ) => vnode ,
You can’t perform that action at this time.
0 commit comments