Explorar el Código

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

yuchao hace 4 años
padre
commit
f454dd62ab
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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