File tree 1 file changed +3
-4
lines changed
packages/runtime-core/src
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -88,14 +88,13 @@ export function withDirectives<T extends VNode>(
88
88
vnode : T ,
89
89
directives : DirectiveArguments ,
90
90
) : T {
91
- const internalInstance = currentRenderingInstance
92
- if ( internalInstance === null ) {
91
+ if ( currentRenderingInstance === null ) {
93
92
__DEV__ && warn ( `withDirectives can only be used inside render functions.` )
94
93
return vnode
95
94
}
96
95
const instance =
97
- ( getExposeProxy ( internalInstance ) as ComponentPublicInstance ) ||
98
- internalInstance . proxy
96
+ ( getExposeProxy ( currentRenderingInstance ) as ComponentPublicInstance ) ||
97
+ currentRenderingInstance . proxy
99
98
const bindings : DirectiveBinding [ ] = vnode . dirs || ( vnode . dirs = [ ] )
100
99
for ( let i = 0 ; i < directives . length ; i ++ ) {
101
100
let [ dir , value , arg , modifiers = EMPTY_OBJ ] = directives [ i ]
You can’t perform that action at this time.
0 commit comments