Bugfix: nodes.forEach should be nodesArray.forEach

This commit is contained in:
djmaze 2021-09-28 13:21:41 +02:00
parent 7d97ae3145
commit 07443407e9

View file

@ -25,7 +25,7 @@ ko.utils = {
var templateDocument = (nodesArray[0] && nodesArray[0].ownerDocument) || document; var templateDocument = (nodesArray[0] && nodesArray[0].ownerDocument) || document;
var container = templateDocument.createElement('div'); var container = templateDocument.createElement('div');
nodes.forEach(node => container.append(ko.cleanNode(node))); nodesArray.forEach(node => container.append(ko.cleanNode(node)));
return container; return container;
}, },
@ -67,7 +67,7 @@ ko.utils = {
// Rule [B] // Rule [B]
while (continuousNodeArray.length > 1 while (continuousNodeArray.length > 1
&& continuousNodeArray[continuousNodeArray.length - 1].parentNode !== parentNode) && continuousNodeArray[continuousNodeArray.length - 1].parentNode !== parentNode)
continuousNodeArray.length--; --continuousNodeArray.length;
// Rule [C] // Rule [C]
if (continuousNodeArray.length > 1) { if (continuousNodeArray.length > 1) {