Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromvuejs/vue

Commitbb1d888

Browse files
committed
refactor: remove no longer needed _staticTrees property
1 parent53431c6 commitbb1d888

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

‎flow/component.js

Lines changed: 0 additions & 1 deletion
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

‎src/core/instance/render.js

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

1818
exportfunctioninitRender(vm:Component){
1919
vm._vnode=null// the root of the child tree
20-
vm._staticTrees=null
2120
constparentVnode=vm.$vnode=vm.$options._parentVnode// the placeholder node in parent tree
2221
constrenderContext=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
constvm: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)

[8]ページ先頭

©2009-2025 Movatter.jp