From 263f5bb8ab100212c6f8eccb3c70b0bc7e6b426c Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 7 Mar 2016 09:08:47 +0100 Subject: [PATCH] Remove the viewport on map dispose --- src/ol/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); };