Merge pull request from google/feature/variable_management

Integrate variable management into develop.
This commit is contained in:
rachel-fenichel 2016-08-18 15:56:18 -07:00 committed by GitHub
commit 21fea1279c
98 changed files with 2553 additions and 1864 deletions

View file

@ -197,6 +197,10 @@ Blockly.Block.prototype.colour_ = '#000000';
* all children of this block.
*/
Blockly.Block.prototype.dispose = function(healStack) {
if (!this.workspace) {
// Already deleted.
return;
}
// Terminate onchange event calls.
if (this.onchangeWrapper_) {
this.workspace.removeChangeListener(this.onchangeWrapper_);