mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Remove goog.dom.removeNode
This commit is contained in:
@@ -29,7 +29,6 @@ goog.provide('Blockly.ScrollbarPair');
|
||||
|
||||
goog.require('Blockly.utils');
|
||||
|
||||
goog.require('goog.dom');
|
||||
goog.require('goog.events.BrowserFeature');
|
||||
goog.require('goog.math.Coordinate');
|
||||
|
||||
@@ -73,7 +72,7 @@ Blockly.ScrollbarPair.prototype.oldHostMetrics_ = null;
|
||||
* Unlink from all DOM elements to prevent memory leaks.
|
||||
*/
|
||||
Blockly.ScrollbarPair.prototype.dispose = function() {
|
||||
goog.dom.removeNode(this.corner_);
|
||||
this.corner_.parentNode.removeChild(this.corner_);
|
||||
this.corner_ = null;
|
||||
this.workspace_ = null;
|
||||
this.oldHostMetrics_ = null;
|
||||
@@ -348,7 +347,7 @@ Blockly.Scrollbar.prototype.dispose = function() {
|
||||
Blockly.unbindEvent_(this.onMouseDownHandleWrapper_);
|
||||
this.onMouseDownHandleWrapper_ = null;
|
||||
|
||||
goog.dom.removeNode(this.outerSvg_);
|
||||
this.outerSvg_.parentNode.removeChild(this.outerSvg_);
|
||||
this.outerSvg_ = null;
|
||||
this.svgGroup_ = null;
|
||||
this.svgBackground_ = null;
|
||||
|
||||
Reference in New Issue
Block a user