Layer.Vector should destroy itself before its parent, r=fredj (closes #1536)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -191,8 +191,6 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
|
|||||||
* Destroy this layer
|
* Destroy this layer
|
||||||
*/
|
*/
|
||||||
destroy: function() {
|
destroy: function() {
|
||||||
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
|
|
||||||
|
|
||||||
this.destroyFeatures();
|
this.destroyFeatures();
|
||||||
this.features = null;
|
this.features = null;
|
||||||
this.selectedFeatures = null;
|
this.selectedFeatures = null;
|
||||||
@@ -202,6 +200,7 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
|
|||||||
this.renderer = null;
|
this.renderer = null;
|
||||||
this.geometryType = null;
|
this.geometryType = null;
|
||||||
this.drawn = null;
|
this.drawn = null;
|
||||||
|
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user