mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user