Remove the viewport on map dispose

This commit is contained in:
Frederic Junod
2016-03-07 09:08:47 +01:00
parent 44de935ef0
commit 263f5bb8ab

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