Skip to content

Commit bb1d888

Browse files
committed
refactor: remove no longer needed _staticTrees property
1 parent 53431c6 commit bb1d888

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Diff for: flow/component.js

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ declare interface Component {
6666
_isDestroyed: boolean;
6767
_isBeingDestroyed: boolean;
6868
_vnode: ?VNode; // self root node
69-
_staticTrees: ?Array<VNode>;
7069
_hasHookEvent: boolean;
7170
_provided: ?Object;
7271

Diff for: src/core/instance/render.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { isUpdatingChildComponent } from './lifecycle'
1717

1818
export function initRender (vm: Component) {
1919
vm._vnode = null // the root of the child tree
20-
vm._staticTrees = null
2120
const parentVnode = vm.$vnode = vm.$options._parentVnode // the placeholder node in parent tree
2221
const renderContext = parentVnode && parentVnode.context
2322
vm.$slots = resolveSlots(vm.$options._renderChildren, renderContext)
@@ -59,11 +58,7 @@ export function renderMixin (Vue: Class<Component>) {
5958

6059
Vue.prototype._render = function (): VNode {
6160
const vm: Component = this
62-
const {
63-
render,
64-
staticRenderFns,
65-
_parentVnode
66-
} = vm.$options
61+
const { render, _parentVnode } = vm.$options
6762

6863
if (vm._isMounted) {
6964
// if the parent didn't update, the slot nodes will be the ones from
@@ -78,9 +73,6 @@ export function renderMixin (Vue: Class<Component>) {
7873

7974
vm.$scopedSlots = (_parentVnode && _parentVnode.data.scopedSlots) || emptyObject
8075

81-
if (staticRenderFns && !vm._staticTrees) {
82-
vm._staticTrees = []
83-
}
8476
// set parent vnode. this allows render functions to have access
8577
// to the data on the placeholder node.
8678
vm.$vnode = _parentVnode

0 commit comments

Comments
 (0)