Skip to content

Commit

Permalink
Merge pull request #1751 from jandrewb/jandrewb-patch-1
Browse files Browse the repository at this point in the history
Fix #1745
  • Loading branch information
rachel-fenichel authored Mar 30, 2018
2 parents 063b5d8 + 237a7d5 commit ccca62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit ccca62b

Please sign in to comment.