Ver Fonte

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

yuchao há 4 anos atrás
pai
commit
f454dd62ab
1 ficheiros alterados com 2 adições e 2 exclusões
  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