Have disposeInternal call parent

This commit is contained in:
Éric Lemoine
2012-10-11 17:46:22 +02:00
parent fbc810264b
commit 0b411ad69c
3 changed files with 3 additions and 1 deletions

View File

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

View File

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

View File

@@ -289,6 +289,7 @@ ol.MapBrowserEventHandler.prototype.disposeInternal = function() {
goog.array.forEach(this.dragListenerKeys_, goog.events.unlistenByKey);
this.dragListenerKeys_ = null;
}
goog.base(this, 'disposeInternal');
};