Calls to getAllBlocks should pass a value for _ordered_

This commit is contained in:
Rachel Fenichel
2018-09-13 16:06:19 -07:00
parent 7dadc4d4ba
commit 6092e4c517
12 changed files with 27 additions and 28 deletions

View File

@@ -73,7 +73,7 @@ Blockly.VariableMap.prototype.clear = function() {
Blockly.VariableMap.prototype.renameVariable = function(variable, newName) {
var type = variable.type;
var conflictVar = this.getVariable(newName, type);
var blocks = this.workspace.getAllBlocks();
var blocks = this.workspace.getAllBlocks(false);
Blockly.Events.setGroup(true);
try {
// The IDs may match if the rename is a simple case change (name1 -> Name1).
@@ -384,7 +384,7 @@ Blockly.VariableMap.prototype.getAllVariables = function() {
*/
Blockly.VariableMap.prototype.getVariableUsesById = function(id) {
var uses = [];
var blocks = this.workspace.getAllBlocks();
var blocks = this.workspace.getAllBlocks(false);
// Iterate through every block and check the name.
for (var i = 0; i < blocks.length; i++) {
var blockVariables = blocks[i].getVarModels();