Misc compiler warnings. (#3172)

* Fix misc compiler warnings. Use ws.getToolbox() instead of ws.toolbox_
This commit is contained in:
Sam El-Husseini
2019-10-07 11:06:56 -07:00
committed by GitHub
parent 608ce7b93c
commit 2ac4149d98
18 changed files with 62 additions and 59 deletions

View File

@@ -496,7 +496,7 @@ Blockly.Blocks['procedures_mutatorcontainer'] = {
(event.type != Blockly.Events.BLOCK_DELETE && event.type != Blockly.Events.BLOCK_CREATE)) {
return;
}
var blocks = this.workspace.getAllBlocks();
var blocks = this.workspace.getAllBlocks(false);
var allVariables = this.workspace.getAllVariables();
if (event.type == Blockly.Events.BLOCK_DELETE) {
var variableNamesToKeep = [];
@@ -602,7 +602,7 @@ Blockly.Blocks['procedures_mutatorarg'] = {
}
// Prevents duplicate parameter names in functions
var blocks = sourceBlock.workspace.getAllBlocks();
var blocks = sourceBlock.workspace.getAllBlocks(false);
for (var i = 0; i < blocks.length; i++) {
if (blocks[i].id == this.getSourceBlock().id) {
continue;