From f29d3b464db273d279f58902735367d714a284cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8A=E6=92=92=E5=B0=94?= <1533540012@qq.com> Date: Fri, 12 Feb 2021 21:12:13 +0800 Subject: [PATCH] Fix variable name --- src/vdom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vdom.js b/src/vdom.js index 560b4c7..037ede2 100644 --- a/src/vdom.js +++ b/src/vdom.js @@ -236,7 +236,7 @@ export function patchInPlace(parentDomNode, newVNode, oldVNode, ref, env) { return newRef; } -function patchChildren(parentDomNode, newChildren, oldchildren, ref, env) { +function patchChildren(parentDomNode, newChildren, oldChildren, ref, env) { // We need to retreive the next sibling before the old children // get eventually removed from the current DOM document const nextNode = getNextSibling(ref); @@ -245,7 +245,7 @@ function patchChildren(parentDomNode, newChildren, oldchildren, ref, env) { let newStart = 0, oldStart = 0, newEnd = newChildren.length - 1, - oldEnd = oldchildren.length - 1; + oldEnd = oldChildren.length - 1; let oldVNode, newVNode, oldRef, newRef, refMap; while (newStart <= newEnd && oldStart <= oldEnd) {