Field.Variable's dispose should be on the prototype

So that it can actually be called.
This commit is contained in:
Rachel Fenichel
2018-03-01 12:23:28 -08:00
committed by GitHub
parent 2083587853
commit dcaacb7b5f

View File

@@ -120,7 +120,7 @@ Blockly.FieldVariable.prototype.initModel = function() {
* Dispose of this field.
* @public
*/
Blockly.FieldVariable.dispose = function() {
Blockly.FieldVariable.prototype.dispose = function() {
Blockly.FieldVariable.superClass_.dispose.call(this);
this.workspace_ = null;
this.variableMap_ = null;