From c053130da3e0611d40337ab829f1b929d9242a0d Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Tue, 9 Jul 2019 16:06:58 -0700 Subject: [PATCH] Fixed Procedure Decomposition Not Working with >1 Arguments (#2622) * Fixed procedure decomposition not working with >1 arguments. * Fixed typo causing #2612. --- blocks/procedures.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/procedures.js b/blocks/procedures.js index 536821c05..ba252e162 100644 --- a/blocks/procedures.js +++ b/blocks/procedures.js @@ -176,12 +176,12 @@ Blockly.Blocks['procedures_defnoreturn'] = { ' ' + '' )); - node = node.getElementsByTagName('xml'); + node = node.getElementsByTagName('next')[0]; } var containerBlock = Blockly.Xml.domToBlock(xml, workspace); - if (this.type == 'procedure_defreturn') { + if (this.type == 'procedures_defreturn') { containerBlock.setFieldValue( this.hasStatements_ ? 'TRUE' : 'FALSE', 'STATEMENTS'); } else {