From f65a39692b8e2ac6e8aef82f0bd01a13522ff0e1 Mon Sep 17 00:00:00 2001 From: "Evan W. Patton" Date: Fri, 7 Oct 2016 15:55:27 -0400 Subject: [PATCH] [WIP] Remove duplicated onchangewrapper --- core/block.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/block.js b/core/block.js index 19d5a7bf1..f07ddd9c1 100644 --- a/core/block.js +++ b/core/block.js @@ -160,11 +160,6 @@ Blockly.Block = function(workspace, prototypeName, opt_id) { this.onchangeWrapper_ = this.onchange.bind(this); this.workspace.addChangeListener(this.onchangeWrapper_); } - // Bind an onchange function, if it exists. - if ((!this.isInFlyout) && goog.isFunction(this.onchange)) { - Blockly.bindEvent_(workspace.getCanvas(), 'blocklyWorkspaceChange', this, - this.onchange); - } }; /**