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'); };