File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1127,10 +1127,10 @@ Blockly.Blocks.coderbot_event_generator = {
11271127
11281128let coderbot_generator_id = 1 ;
11291129Blockly . Python . coderbot_event_generator = function ( block ) {
1130- const INDENT_saved = Blockly . Generator . prototype . INDENT ;
1131- Blockly . Generator . prototype . INDENT = Blockly . Generator . prototype . INDENT + Blockly . Generator . prototype . INDENT ;
1130+ const INDENT_saved = Blockly . Generator . INDENT ;
1131+ Blockly . Generator . INDENT = Blockly . Generator . INDENT + Blockly . Generator . INDENT ;
11321132 const statements_event_generator = Blockly . Python . statementToCode ( block , 'generator_statements' ) ;
1133- Blockly . Generator . prototype . INDENT = INDENT_saved ;
1133+ Blockly . Generator . INDENT = INDENT_saved ;
11341134 const code = `def event_generator_${ coderbot_generator_id } ():\n${
11351135 INDENT_saved } while True:\n${
11361136 INDENT_saved } ${ INDENT_saved } get_prog_eng().check_end()\n${
@@ -1160,7 +1160,7 @@ Blockly.Python.coderbot_event_listener = function (block) {
11601160 const event_topic = block . getFieldValue ( 'event_topic' ) ;
11611161 const event_statements = Blockly . Python . statementToCode ( block , 'event_statements' ) ;
11621162 const code = `def event_listener_${ coderbot_listener_id } (message):\n${
1163- Blockly . Generator . prototype . INDENT } event_data = json.loads(message)\n${
1163+ Blockly . Generator . INDENT } event_data = json.loads(message)\n${
11641164 event_statements } \n` +
11651165 `get_event().register_event_listener('${ event_topic } ', event_listener_${ coderbot_listener_id } )` ;
11661166 coderbot_listener_id ++ ;
You can’t perform that action at this time.
0 commit comments