From 84e09a508f8e6c1f993d5ea574a3e036dd390cd2 Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger Date: Fri, 10 Jan 2025 18:22:44 -0500 Subject: [PATCH] js - use const declaration in loop variable --- src/resources/formats/html/quarto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/formats/html/quarto.js b/src/resources/formats/html/quarto.js index e9c20bc6c8..f49812ebcb 100644 --- a/src/resources/formats/html/quarto.js +++ b/src/resources/formats/html/quarto.js @@ -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; }