From 0b411ad69c5b630a68fd70199cd8022c332ec5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 11 Oct 2012 17:46:22 +0200 Subject: [PATCH] Have disposeInternal call parent --- src/ol/control/control.js | 1 + src/ol/map.js | 2 +- src/ol/mapbrowserevent.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ol/control/control.js b/src/ol/control/control.js index 5dda618613..ad7ab15f7e 100644 --- a/src/ol/control/control.js +++ b/src/ol/control/control.js @@ -54,6 +54,7 @@ goog.inherits(ol.control.Control, goog.Disposable); */ ol.control.Control.prototype.disposeInternal = function() { goog.dom.removeNode(this.element); + goog.base(this, 'disposeInternal'); }; diff --git a/src/ol/map.js b/src/ol/map.js index 42dd95b574..9ed3f64a5f 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -295,8 +295,8 @@ ol.Map.prototype.canRotate = function() { * @inheritDoc */ ol.Map.prototype.disposeInternal = function() { - goog.base(this, 'disposeInternal'); goog.dom.removeNode(this.viewport_); + goog.base(this, 'disposeInternal'); }; diff --git a/src/ol/mapbrowserevent.js b/src/ol/mapbrowserevent.js index a2d241eda9..63b3c956cd 100644 --- a/src/ol/mapbrowserevent.js +++ b/src/ol/mapbrowserevent.js @@ -289,6 +289,7 @@ ol.MapBrowserEventHandler.prototype.disposeInternal = function() { goog.array.forEach(this.dragListenerKeys_, goog.events.unlistenByKey); this.dragListenerKeys_ = null; } + goog.base(this, 'disposeInternal'); };