Fixed Procedure Decomposition Not Working with >1 Arguments (#2622)

* Fixed procedure decomposition not working with >1 arguments.

* Fixed typo causing #2612.
This commit is contained in:
Beka Westberg
2019-07-09 16:06:58 -07:00
committed by RoboErikG
parent e06d4e648c
commit c053130da3

View File

@@ -176,12 +176,12 @@ Blockly.Blocks['procedures_defnoreturn'] = {
' <next></next>' +
'</block>'
));
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 {