From dcaacb7b5f3cab70859f9bb81b8beef9a68180a2 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 1 Mar 2018 12:23:28 -0800 Subject: [PATCH] Field.Variable's dispose should be on the prototype So that it can actually be called. --- core/field_variable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_variable.js b/core/field_variable.js index 7a3d6a37c..d8f88d905 100644 --- a/core/field_variable.js +++ b/core/field_variable.js @@ -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;