From 23c17899765e92b616b158fbd8ef3cac7814c497 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini <16690124+samelhusseini@users.noreply.github.com> Date: Fri, 13 Apr 2018 15:21:41 -0700 Subject: [PATCH] Fix IE11 for in bug in motor field (#513) * Fix IE11 for in bug in motor field * minor fix --- editor/field_motors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/field_motors.ts b/editor/field_motors.ts index 64984eee..4ae0779e 100644 --- a/editor/field_motors.ts +++ b/editor/field_motors.ts @@ -406,7 +406,7 @@ export class FieldMotors extends Blockly.FieldDropdown implements Blockly.FieldC let opts = {}; let conts = {}; let vals = {}; - for (let opt in options) { + for (let opt = 0; opt < options.length; opt++) { let text = options[opt][0].alt ? options[opt][0].alt : options[opt][0]; if (text.indexOf(' ') == -1) { // Patch dual motors as they don't have prefixes.