Skip to content

Commit 84e09a5

Browse files
committed
js - use const declaration in loop variable
1 parent 06dd45a commit 84e09a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/formats/html/quarto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
742742

743743
// See if there is an active child to this element
744744
let hasActiveChild = false;
745-
for (child of el.children) {
745+
for (const child of el.children) {
746746
hasActiveChild = walk(child, depth) || hasActiveChild;
747747
}
748748

0 commit comments

Comments
 (0)