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() {