mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
@@ -563,7 +563,7 @@ Blockly.Variables.getAddedVariables = function(workspace, originalVariables) {
|
||||
var variable = allCurrentVariables[i];
|
||||
// For any variable that is present in allCurrentVariables but not
|
||||
// present in originalVariables, add the variable to addedVariables.
|
||||
if (!originalVariables.includes(variable)) {
|
||||
if (originalVariables.indexOf(variable) == -1) {
|
||||
addedVariables.push(variable);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user