Fix generators for deprecated controls_repeat block.

This commit is contained in:
Neil Fraser
2015-09-07 19:42:22 -07:00
parent db940ca493
commit cb26a13b00
8 changed files with 10 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ Blockly.JavaScript['controls_repeat_ext'] = function(block) {
// Repeat n times.
if (block.getField('TIMES')) {
// Internal number.
var repeats = Number(block.getFieldValue('TIMES'));
var repeats = String(Number(block.getFieldValue('TIMES')));
} else {
// External number.
var repeats = Blockly.JavaScript.valueToCode(block, 'TIMES',