Merge pull request #4981 from fredj/dispose_viewport
Remove the viewport on map dispose
This commit is contained in:
+1
-1
@@ -593,7 +593,7 @@ ol.Map.prototype.disposeInternal = function() {
|
|||||||
goog.global.cancelAnimationFrame(this.animationDelayKey_);
|
goog.global.cancelAnimationFrame(this.animationDelayKey_);
|
||||||
this.animationDelayKey_ = undefined;
|
this.animationDelayKey_ = undefined;
|
||||||
}
|
}
|
||||||
goog.dom.removeNode(this.viewport_);
|
this.setTarget(null);
|
||||||
goog.base(this, 'disposeInternal');
|
goog.base(this, 'disposeInternal');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user