mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Merge pull request #68 from Gamefroot/fix-procedure-call
Fixed issue with mutated procedure call blocks
This commit is contained in:
@@ -594,15 +594,15 @@ Blockly.Blocks['procedures_callnoreturn'] = {
|
||||
// Initialize caller with the mutator's IDs.
|
||||
this.setProcedureParameters(def.arguments_, def.paramIds_);
|
||||
} else {
|
||||
this.arguments_ = [];
|
||||
var args = [];
|
||||
for (var i = 0, childNode; childNode = xmlElement.childNodes[i]; i++) {
|
||||
if (childNode.nodeName.toLowerCase() == 'arg') {
|
||||
this.arguments_.push(childNode.getAttribute('name'));
|
||||
args.push(childNode.getAttribute('name'));
|
||||
}
|
||||
}
|
||||
// For the second argument (paramIds) use the arguments list as a dummy
|
||||
// list.
|
||||
this.setProcedureParameters(this.arguments_, this.arguments_);
|
||||
this.setProcedureParameters(args, args);
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user