Преглед изворни кода

chore: comments grammar (#4913) [ci skip]

yuchao пре 4 година
родитељ
комит
f454dd62ab
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      packages/runtime-core/src/renderer.ts

+ 2 - 2
packages/runtime-core/src/renderer.ts

@@ -2463,8 +2463,8 @@ export function invokeVNodeHook(
  *
  * #2080
  * Inside keyed `template` fragment static children, if a fragment is moved,
- * the children will always moved so that need inherit el form previous nodes
- * to ensure correct moved position.
+ * the children will always be moved. Therefore, in order to ensure correct move
+ * position, el should be inherited from previous nodes.
  */
 export function traverseStaticChildren(n1: VNode, n2: VNode, shallow = false) {
   const ch1 = n1.children