diff --git a/src/ol/map.js b/src/ol/map.js index 36ba13e3c0..8d84d08e28 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -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'); };