File tree 1 file changed +3
-3
lines changed
src/core/instance/render-helpers
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ export function renderStatic (
11
11
) : VNode | Array < VNode > {
12
12
// static trees can be rendered once and cached on the contructor options
13
13
// so every instance shares the same cached trees
14
- const renderFns = this . $options . staticRenderFns
15
- const cached = renderFns . cached || ( renderFns . cached = [ ] )
14
+ const options = this . $options
15
+ const cached = options . cached || ( options . cached = [ ] )
16
16
let tree = cached [ index ]
17
17
// if has already-rendered static tree and not inside v-for,
18
18
// we can reuse the same tree by doing a shallow clone.
@@ -22,7 +22,7 @@ export function renderStatic (
22
22
: cloneVNode ( tree )
23
23
}
24
24
// otherwise, render a fresh tree.
25
- tree = cached [ index ] = renderFns [ index ] . call ( this . _renderProxy , null , this )
25
+ tree = cached [ index ] = options . staticRenderFns [ index ] . call ( this . _renderProxy , null , this )
26
26
markStatic ( tree , `__static__${ index } ` , false )
27
27
return tree
28
28
}
You can’t perform that action at this time.
0 commit comments