From 550c13739c584af6530cd5c0124ac4d106efdbf3 Mon Sep 17 00:00:00 2001 From: kozbial Date: Mon, 16 Sep 2019 17:04:18 -0700 Subject: [PATCH] Removing foreach usage. --- tests/playground.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/playground.html b/tests/playground.html index 0c81386ff..9fb34d18e 100644 --- a/tests/playground.html +++ b/tests/playground.html @@ -293,7 +293,8 @@ function updateRenderDebugOptions(e) { function addRenderDebugOptionsCheckboxes() { var renderDebugConfig = Blockly.blockRendering.Debug.config; var renderDebugOptionsListEl = document.getElementById('renderDebugOptions'); - Object.keys(renderDebugConfig).forEach(function(optionName) { + var optionNames = Object.keys(renderDebugConfig); + for (var i = 0, optionName; (optionName = optionNames[i]); i++) { var optionCheckId = 'RenderDebug' + optionName + 'Check'; var optionLabel = document.createElement('label'); optionLabel.setAttribute('htmlFor', optionCheckId); @@ -307,7 +308,7 @@ function addRenderDebugOptionsCheckboxes() { optionLi.appendChild(optionLabel); optionLi.appendChild(optionCheck); renderDebugOptionsListEl.appendChild(optionLi); - }); + } } function changeTheme() {