mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Fix bug in variable_map that was introduced during merge conflict resolving
This commit is contained in:
@@ -152,7 +152,7 @@ VariableMap.prototype.renameVariableWithConflict_ = function(
|
||||
// Finally delete the original variable, which is now unreferenced.
|
||||
Events.fire(new (Events.get(Events.VAR_DELETE))(variable));
|
||||
// And remove it from the list.
|
||||
utils.arrayRemove(this.getVariablesOfType(type), variable);
|
||||
utils.arrayRemove(this.variableMap_[type], variable);
|
||||
};
|
||||
|
||||
/* End functions for renaming variables. */
|
||||
|
||||
Reference in New Issue
Block a user