Skip to content

Commit 5c08b10

Browse files

File tree

block-lexical-variables/src/blocks/procedures.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ Blockly.Blocks['procedures_defnoreturn'] = {
250250
// horizontal -> vertical params in procedure decl doesn't handle body tag
251251
// appropriately!
252252
for (let i = 0; i < this.inputList.length; i++) {
253-
this.inputList[i].init();
253+
if (this.inputList[i].sourceBlock.rendered) {
254+
this.inputList[i].init();
255+
} else {
256+
this.inputList[i].initModel();
257+
}
254258
}
255259
if (this.rendered) {
256260
this.render();

0 commit comments

Comments
 (0)