From 237a7d5590134c21a3cbeadd88c0f44f2e0c6785 Mon Sep 17 00:00:00 2001 From: jandrewb <25281951+jandrewb@users.noreply.github.com> Date: Thu, 29 Mar 2018 19:46:16 -0500 Subject: [PATCH] Fix #1745 --- core/variables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/variables.js b/core/variables.js index 2b268b425..4f1e5939b 100644 --- a/core/variables.js +++ b/core/variables.js @@ -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); } }