mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Make comments more consistent.
This commit is contained in:
@@ -22,8 +22,8 @@ Blockly.Python['procedures_defreturn'] = function(block) {
|
||||
var globals = [];
|
||||
var workspace = block.workspace;
|
||||
var variables = Blockly.Variables.allUsedVarModels(workspace) || [];
|
||||
for (var i = 0, variable; variable = variables[i]; i++) {
|
||||
varName = variable.name;
|
||||
for (var i = 0, variable; (variable = variables[i]); i++) {
|
||||
var varName = variable.name;
|
||||
if (block.getVars().indexOf(varName) == -1) {
|
||||
globals.push(Blockly.Python.nameDB_.getName(varName,
|
||||
Blockly.VARIABLE_CATEGORY_NAME));
|
||||
|
||||
Reference in New Issue
Block a user