Merge pull request #1751 from jandrewb/jandrewb-patch-1

Fix #1745
This commit is contained in:
Rachel Fenichel
2018-03-30 13:59:19 -07:00
committed by GitHub

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