mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-13 01:50:41 +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);
|
const textNodes = getTextNodesIn(element);
|
||||||
|
|
||||||
let nodeEndPos = 0;
|
let nodeEndPos = 0;
|
||||||
for (let i = 0; i < textNodes.length; i++) {
|
for (const textNode of textNodes) {
|
||||||
const textNode = textNodes[i];
|
|
||||||
const previousNodeEndPos = nodeEndPos;
|
const previousNodeEndPos = nodeEndPos;
|
||||||
nodeEndPos += textNode.length;
|
nodeEndPos += textNode.length;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user