mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-12 17:40:52 +01:00
kalk_web: Changed C-style for loop to for each loop
This commit is contained in:
parent
eeb1e1e5a4
commit
36abfe60cc
@ -221,8 +221,7 @@
|
||||
const textNodes = getTextNodesIn(element);
|
||||
|
||||
let nodeEndPos = 0;
|
||||
for (let i = 0; i < textNodes.length; i++) {
|
||||
const textNode = textNodes[i];
|
||||
for (const textNode of textNodes) {
|
||||
const previousNodeEndPos = nodeEndPos;
|
||||
nodeEndPos += textNode.length;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user