mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Fix default variable name
This commit is contained in:
@@ -133,7 +133,7 @@ Blockly.FieldVariable.prototype.initModel = function() {
|
||||
}
|
||||
this.workspace_ = this.sourceBlock_.workspace;
|
||||
var variable = Blockly.FieldVariable.getOrCreateVariable(
|
||||
this.workspace_, name, this.defaultType_, null);
|
||||
this.workspace_, this.defaultVariableName, this.defaultType_, null);
|
||||
this.setValue(variable.getId());
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user