From 07443407e951fe1c782d2ac94596b02d5027eac4 Mon Sep 17 00:00:00 2001 From: djmaze Date: Tue, 28 Sep 2021 13:21:41 +0200 Subject: [PATCH] Bugfix: nodes.forEach should be nodesArray.forEach --- vendors/knockout/src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendors/knockout/src/utils.js b/vendors/knockout/src/utils.js index 1c9807a4f..fdb127389 100644 --- a/vendors/knockout/src/utils.js +++ b/vendors/knockout/src/utils.js @@ -25,7 +25,7 @@ ko.utils = { var templateDocument = (nodesArray[0] && nodesArray[0].ownerDocument) || document; var container = templateDocument.createElement('div'); - nodes.forEach(node => container.append(ko.cleanNode(node))); + nodesArray.forEach(node => container.append(ko.cleanNode(node))); return container; }, @@ -67,7 +67,7 @@ ko.utils = { // Rule [B] while (continuousNodeArray.length > 1 && continuousNodeArray[continuousNodeArray.length - 1].parentNode !== parentNode) - continuousNodeArray.length--; + --continuousNodeArray.length; // Rule [C] if (continuousNodeArray.length > 1) {