Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/vdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) {
Expand Down