From 123e959c7e336269e3d2943f0b96abb4fb11ea36 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 25 May 2006 00:19:24 +0000 Subject: [PATCH] add 'map' reference to standard popup. make sure to nullify it in the destroy() git-svn-id: http://svn.openlayers.org/trunk/openlayers@336 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Popup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/OpenLayers/Popup.js b/lib/OpenLayers/Popup.js index 44fc3c2754..2b9c536273 100644 --- a/lib/OpenLayers/Popup.js +++ b/lib/OpenLayers/Popup.js @@ -37,6 +37,9 @@ OpenLayers.Popup.prototype = { /** @type String */ border: "", + /** this gets set in Map.js when the popup is added to the map + * @type OpenLayers.Map */ + map: null, /** * @constructor @@ -66,6 +69,7 @@ OpenLayers.Popup.prototype = { this.div.parentNode.removeChild(this.div); } this.div = null; + this.map = null; }, /**