Skip to content

Commit

Permalink
Use onEachLazy to iterate DOMTokenList
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Apr 19, 2021
1 parent 9b62407 commit 20c3627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ function hideThemeButtonState() {
if (currentType) {
currentType = currentType.getElementsByClassName("rust")[0];
if (currentType) {
currentType.classList.forEach(function(item) {
onEachLazy(currentType.classList, function(item) {
if (item !== "main") {
className = item;
return true;
Expand Down

0 comments on commit 20c3627

Please sign in to comment.