mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Calls to getAllBlocks should pass a value for _ordered_
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user