mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Dropdown Create does not create a missing variable twice.
This commit is contained in:
@@ -211,7 +211,7 @@ Blockly.VariableMap.prototype.getVariablesOfType = function(type) {
|
||||
type = type || '';
|
||||
var variable_list = this.variableMap_[type];
|
||||
if (variable_list) {
|
||||
return variable_list;
|
||||
return variable_list.slice();
|
||||
}
|
||||
return [];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user