[WIP] Remove duplicated onchangewrapper

This commit is contained in:
Evan W. Patton
2016-10-07 15:55:27 -04:00
parent dad5a2d943
commit f65a39692b

View File

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