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); - } }; /**