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:
@@ -46,8 +46,10 @@ OpenLayers.Feature.prototype= {
|
|||||||
destroy: function() {
|
destroy: function() {
|
||||||
|
|
||||||
//remove the popup from the map
|
//remove the popup from the map
|
||||||
if (this.popup != null) {
|
if ((this.layer != null) && (this.layer.map != null)) {
|
||||||
this.layer.map.removePopup(this.popup);
|
if (this.popup != null) {
|
||||||
|
this.layer.map.removePopup(this.popup);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.events = null;
|
this.events = null;
|
||||||
|
|||||||
@@ -47,6 +47,14 @@ OpenLayers.Layer.WFS.prototype =
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
destroy: function() {
|
||||||
|
OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments);
|
||||||
|
OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {OpenLayers.Bounds} bounds
|
* @param {OpenLayers.Bounds} bounds
|
||||||
* @param {Boolean} zoomChanged
|
* @param {Boolean} zoomChanged
|
||||||
|
|||||||
Reference in New Issue
Block a user