Fix by changing workspace's dispose method to remove the injectDiv wrapper of the

svg. The wrapper div was introduced in .
This commit is contained in:
Katelyn Mann 2016-08-11 11:00:02 -07:00
parent 9819d677a9
commit bbd57a9a16

View file

@ -275,8 +275,9 @@ Blockly.WorkspaceSvg.prototype.dispose = function() {
this.zoomControls_ = null;
}
if (!this.options.parentWorkspace) {
// Top-most workspace. Dispose of the SVG too.
goog.dom.removeNode(this.getParentSvg());
// Top-most workspace. Dispose of the div that the
// svg is injected into (i.e. injectionDiv).
goog.dom.removeNode(this.getParentSvg().parentNode);
}
if (this.resizeHandlerWrapper_) {
Blockly.unbindEvent_(this.resizeHandlerWrapper_);