Remove goog.dom.removeNode

This commit is contained in:
Neil Fraser
2018-06-29 15:58:41 -07:00
committed by Neil Fraser
parent f802859547
commit c51cf0b79c
19 changed files with 36 additions and 42 deletions

View File

@@ -28,7 +28,6 @@ goog.provide('Blockly.FlyoutButton');
goog.require('Blockly.utils');
goog.require('goog.dom');
goog.require('goog.math.Coordinate');
@@ -240,7 +239,7 @@ Blockly.FlyoutButton.prototype.dispose = function() {
Blockly.unbindEvent_(this.onMouseUpWrapper_);
}
if (this.svgGroup_) {
goog.dom.removeNode(this.svgGroup_);
this.svgGroup_.parentNode.removeChild(this.svgGroup_);
this.svgGroup_ = null;
}
this.workspace_ = null;