Skip to content

Commit

Permalink
js - use const declaration in loop variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Jan 10, 2025
1 parent 06dd45a commit 84e09a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/formats/html/quarto.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {

// See if there is an active child to this element
let hasActiveChild = false;
for (child of el.children) {
for (const child of el.children) {
hasActiveChild = walk(child, depth) || hasActiveChild;
}

Expand Down

0 comments on commit 84e09a5

Please sign in to comment.