mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Fix generators for deprecated controls_repeat block.
This commit is contained in:
@@ -33,7 +33,7 @@ Blockly.Python['controls_repeat_ext'] = function(block) {
|
||||
// Repeat n times.
|
||||
if (block.getField('TIMES')) {
|
||||
// Internal number.
|
||||
var repeats = parseInt(block.getFieldValue('TIMES'), 10);
|
||||
var repeats = String(parseInt(block.getFieldValue('TIMES'), 10));
|
||||
} else {
|
||||
// External number.
|
||||
var repeats = Blockly.Python.valueToCode(block, 'TIMES',
|
||||
|
||||
Reference in New Issue
Block a user