This commit is contained in:
jandrewb
2018-03-29 19:46:16 -05:00
committed by GitHub
parent 063b5d880c
commit 237a7d5590

View File

@@ -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);
}
}