give the wfs layer a proper destroy method (Closes #1256)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5989 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2008-02-05 06:12:29 +00:00
parent 211a2834de
commit 8311449985
2 changed files with 80 additions and 0 deletions
+18
View File
@@ -156,6 +156,24 @@ OpenLayers.Layer.WFS = OpenLayers.Class(
} else {
OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments);
}
if (this.tile) {
this.tile.destroy();
}
this.tile = null;
this.ratio = null;
this.featureClass = null;
this.format = null;
if (this.formatObject && this.formatObject.destroy) {
this.formatObject.destroy();
}
this.formatObject = null;
this.formatOptions = null;
this.vectorMode = null;
this.encodeBBOX = null;
this.extractAttributes = null;
},
/**