Merge pull request #4981 from fredj/dispose_viewport

Remove the viewport on map dispose
This commit is contained in:
Frédéric Junod
2016-03-07 12:10:11 +01:00

View File

@@ -593,7 +593,7 @@ ol.Map.prototype.disposeInternal = function() {
goog.global.cancelAnimationFrame(this.animationDelayKey_);
this.animationDelayKey_ = undefined;
}
goog.dom.removeNode(this.viewport_);
this.setTarget(null);
goog.base(this, 'disposeInternal');
};