mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
Misc compiler warnings. (#3172)
* Fix misc compiler warnings. Use ws.getToolbox() instead of ws.toolbox_
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user