mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Skc memory leaks (PR #159)
This commit is contained in:
@@ -53,8 +53,6 @@ Blockly.ScrollbarPair = function(workspace) {
|
||||
* Unlink from all DOM elements to prevent memory leaks.
|
||||
*/
|
||||
Blockly.ScrollbarPair.prototype.dispose = function() {
|
||||
Blockly.unbindEvent_(this.onResizeWrapper_);
|
||||
this.onResizeWrapper_ = null;
|
||||
goog.dom.removeNode(this.corner_);
|
||||
this.corner_ = null;
|
||||
this.workspace_ = null;
|
||||
@@ -190,10 +188,6 @@ if (goog.events.BrowserFeature.TOUCH_ENABLED) {
|
||||
*/
|
||||
Blockly.Scrollbar.prototype.dispose = function() {
|
||||
this.onMouseUpKnob_();
|
||||
if (this.onResizeWrapper_) {
|
||||
Blockly.unbindEvent_(this.onResizeWrapper_);
|
||||
this.onResizeWrapper_ = null;
|
||||
}
|
||||
Blockly.unbindEvent_(this.onMouseDownBarWrapper_);
|
||||
this.onMouseDownBarWrapper_ = null;
|
||||
Blockly.unbindEvent_(this.onMouseDownKnobWrapper_);
|
||||
|
||||
Reference in New Issue
Block a user