Have disposeInternal call parent
This commit is contained in:
@@ -54,6 +54,7 @@ goog.inherits(ol.control.Control, goog.Disposable);
|
|||||||
*/
|
*/
|
||||||
ol.control.Control.prototype.disposeInternal = function() {
|
ol.control.Control.prototype.disposeInternal = function() {
|
||||||
goog.dom.removeNode(this.element);
|
goog.dom.removeNode(this.element);
|
||||||
|
goog.base(this, 'disposeInternal');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -295,8 +295,8 @@ ol.Map.prototype.canRotate = function() {
|
|||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.Map.prototype.disposeInternal = function() {
|
ol.Map.prototype.disposeInternal = function() {
|
||||||
goog.base(this, 'disposeInternal');
|
|
||||||
goog.dom.removeNode(this.viewport_);
|
goog.dom.removeNode(this.viewport_);
|
||||||
|
goog.base(this, 'disposeInternal');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -289,6 +289,7 @@ ol.MapBrowserEventHandler.prototype.disposeInternal = function() {
|
|||||||
goog.array.forEach(this.dragListenerKeys_, goog.events.unlistenByKey);
|
goog.array.forEach(this.dragListenerKeys_, goog.events.unlistenByKey);
|
||||||
this.dragListenerKeys_ = null;
|
this.dragListenerKeys_ = null;
|
||||||
}
|
}
|
||||||
|
goog.base(this, 'disposeInternal');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user