mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Remove TODO and get rid of unnecessary wrapper call.
This commit is contained in:
@@ -153,9 +153,7 @@ Blockly.PHP.init = function(workspace) {
|
||||
|
||||
var defvars = [];
|
||||
var varName;
|
||||
// TODO (fenichel): Why does this use Variables.allVariables when the rest use
|
||||
// workspace.getAllVariables()?
|
||||
var variables = Blockly.Variables.allVariables(workspace);
|
||||
var variables = workspace.getAllVariables();
|
||||
for (var i = 0, variable; variable = variables[i]; i++) {
|
||||
varName = variable.name;
|
||||
defvars[i] = Blockly.PHP.variableDB_.getName(varName,
|
||||
|
||||
Reference in New Issue
Block a user