Fix default variable name

This commit is contained in:
Rachel Fenichel
2017-12-04 15:52:53 -08:00
parent 3ae7ac1cd4
commit f37386d2bf

View File

@@ -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());
};