Update comment on loop types

See https://groups.google.com/d/msg/blockly/v6W3BGN9P_o/RH91g94RBAAJ
This commit is contained in:
Rachel Fenichel
2018-02-20 17:01:29 -08:00
committed by GitHub
parent c4d114eb0f
commit 20b7b7a8eb

View File

@@ -299,7 +299,7 @@ Blockly.Constants.Loops.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN = {
/**
* List of block types that are loops and thus do not need warnings.
* To add a new loop type add this to your code:
* Blockly.Blocks['controls_flow_statements'].LOOP_TYPES.push('custom_loop');
* Blockly.Constants.Loops.CONTROL_FLOW_IN_LOOP_CHECK_MIXIN.LOOP_TYPES.push('custom_loop');
*/
LOOP_TYPES: ['controls_repeat', 'controls_repeat_ext', 'controls_forEach',
'controls_for', 'controls_whileUntil'],