mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
Fix generators for deprecated controls_repeat block.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user