mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Fix allUsedVariables not returning non-predefined variables
This commit is contained in:
parent
a58dafee2a
commit
73e20573df
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ Blockly.Variables.allUsedVariables = function(root) {
|
|||
for (var y = 0; y < blockVariables.length; y++) {
|
||||
var varName = blockVariables[y];
|
||||
// Variable name may be null if the block is only half-built.
|
||||
if (varName && !varName.toLowerCase() == ignorableName) {
|
||||
if (varName && varName.toLowerCase() != ignorableName) {
|
||||
variableHash[varName.toLowerCase()] = varName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue