Skip to content

Commit

Permalink
minor refactor: forEach() to for..of
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed Feb 11, 2024
1 parent a7cd4da commit f9a46ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inspire.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ let _ = {
stepped.push(slide);
}

stepped.forEach(function(element) {
for (let element of stepped) {
let steps = +element.getAttribute("data-steps");
element.removeAttribute("data-step");

Expand All @@ -180,7 +180,7 @@ let _ = {
dummyIndex: i+1
});
}
});
}
} // end slide loop

slideContainers.delete(document.body);
Expand Down

0 comments on commit f9a46ce

Please sign in to comment.