From dabba5ef4116e97df4f959821f663f59162ea06b Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 22 Sep 2006 13:51:08 +0000 Subject: [PATCH] We've had a number of problems related to browsers complaining on this line. The popups go away, then cause: [Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "/lib/OpenLayers.js Line: 7663"] This will hopefully silence the exception. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index 60d6f91efc..f6be0f8f76 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -438,7 +438,9 @@ OpenLayers.Map.prototype = { removePopup: function(popup) { this.popups.remove(popup); if (popup.div) { - this.layerContainerDiv.removeChild(popup.div); + try { this.layerContainerDiv.removeChild(popup.div); } + catch { } // Popups sometimes apparently get disconnected + // from the layerContainerDiv, and cause complaints. } popup.map = null; },