Fix IE11 for in bug in motor field (#513)
* Fix IE11 for in bug in motor field * minor fix
This commit is contained in:
		@@ -406,7 +406,7 @@ export class FieldMotors extends Blockly.FieldDropdown implements Blockly.FieldC
 | 
				
			|||||||
        let opts = {};
 | 
					        let opts = {};
 | 
				
			||||||
        let conts = {};
 | 
					        let conts = {};
 | 
				
			||||||
        let vals = {};
 | 
					        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];
 | 
					            let text = options[opt][0].alt ? options[opt][0].alt : options[opt][0];
 | 
				
			||||||
            if (text.indexOf(' ') == -1) {
 | 
					            if (text.indexOf(' ') == -1) {
 | 
				
			||||||
                // Patch dual motors as they don't have prefixes.
 | 
					                // Patch dual motors as they don't have prefixes.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user