mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-13 22:49:02 -04:00
Dispose of toolbox when workspace is disposed.
This commit is contained in:
parent
af056f9028
commit
8202ebf07d
6 changed files with 69 additions and 54 deletions
core
|
@ -139,6 +139,15 @@ Blockly.Toolbox.prototype.init = function() {
|
|||
this.position();
|
||||
};
|
||||
|
||||
/**
|
||||
* Dispose of this toolbox.
|
||||
*/
|
||||
Blockly.Toolbox.prototype.dispose = function() {
|
||||
this.flyout_.dispose();
|
||||
this.tree_.dispose();
|
||||
goog.dom.removeNode(this.HtmlDiv);
|
||||
};
|
||||
|
||||
/**
|
||||
* Move the toolbox to the edge.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue