mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Update procedure generators
This commit is contained in:
@@ -152,11 +152,9 @@ Blockly.PHP.init = function(workspace) {
|
||||
Blockly.PHP.variableDB_.setVariableMap(workspace.getVariableMap());
|
||||
|
||||
var defvars = [];
|
||||
var varName;
|
||||
var variables = workspace.getAllVariables();
|
||||
for (var i = 0, variable; variable = variables[i]; i++) {
|
||||
varName = variable.name;
|
||||
defvars[i] = Blockly.PHP.variableDB_.getName(varName,
|
||||
defvars[i] = Blockly.PHP.variableDB_.getName(variable.getId(),
|
||||
Blockly.Variables.NAME_TYPE) + ';';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user