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
This commit is contained in:
crschmidt
2006-09-22 13:51:08 +00:00
parent 086e1efb5f
commit dabba5ef41

View File

@@ -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;
},