recommitting r574 - the bug was in the OpenLayers.Feature destroy() function, which was not checking to ensure a valid map setting.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-12 16:00:00 +00:00
parent e3695d2223
commit fc366b73fe
2 changed files with 12 additions and 2 deletions

View File

@@ -46,8 +46,10 @@ OpenLayers.Feature.prototype= {
destroy: function() {
//remove the popup from the map
if (this.popup != null) {
this.layer.map.removePopup(this.popup);
if ((this.layer != null) && (this.layer.map != null)) {
if (this.popup != null) {
this.layer.map.removePopup(this.popup);
}
}
this.events = null;