Skip to content

Commit 20c3627

Browse files
committed
Use onEachLazy to iterate DOMTokenList
1 parent 9b62407 commit 20c3627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ function hideThemeButtonState() {
12811281
if (currentType) {
12821282
currentType = currentType.getElementsByClassName("rust")[0];
12831283
if (currentType) {
1284-
currentType.classList.forEach(function(item) {
1284+
onEachLazy(currentType.classList, function(item) {
12851285
if (item !== "main") {
12861286
className = item;
12871287
return true;

0 commit comments

Comments
 (0)