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:
Éric Lemoine
2008-05-27 07:53:48 +00:00
parent 7f8c5d0c13
commit 6553f9895a

View File

@@ -191,8 +191,6 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
* Destroy this layer
*/
destroy: function() {
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
this.destroyFeatures();
this.features = null;
this.selectedFeatures = null;
@@ -202,6 +200,7 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
this.renderer = null;
this.geometryType = null;
this.drawn = null;
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
},
/**