Make colour optional in JSON. Add ;/n in generator stub.

This commit is contained in:
Neil Fraser
2016-01-28 14:25:38 -05:00
parent 9804b31bb0
commit 211595075e
4 changed files with 15 additions and 8 deletions

View File

@@ -647,7 +647,7 @@ Blockly.Blocks['procedures_callnoreturn'] = {
for (var i = 0; i < this.arguments_.length; i++) {
if (Blockly.Names.equals(oldName, this.arguments_[i])) {
this.arguments_[i] = newName;
this.getInput('ARG' + i).fieldRow[0].setText(newName);
this.getInput('ARG' + i).fieldRow[0].setValue(newName);
}
}
},