mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
replaced ko.utils.array* with native
This commit is contained in:
parent
20b1e08c9b
commit
d49916731f
14 changed files with 137 additions and 230 deletions
|
|
@ -41,7 +41,7 @@ ko.utils.domNodeDisposal = new (function () {
|
|||
if (!onlyComments || nodeList[i].nodeType === 8) {
|
||||
cleanSingleNode(cleanedNodes[cleanedNodes.length] = lastCleanedNode = nodeList[i]);
|
||||
if (nodeList[i] !== lastCleanedNode) {
|
||||
while (i-- && ko.utils.arrayIndexOf(cleanedNodes, nodeList[i]) == -1);
|
||||
while (i-- && !cleanedNodes.includes(nodeList[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue