From f85fb1674d087f71b85dac2761289406f0b5f9da Mon Sep 17 00:00:00 2001 From: euzuro Date: Fri, 2 Jun 2006 16:03:52 +0000 Subject: [PATCH] add destroy() which will iterate and destroy all the features git-svn-id: http://svn.openlayers.org/trunk/openlayers@499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Tile/WFS.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/OpenLayers/Tile/WFS.js b/lib/OpenLayers/Tile/WFS.js index a0cba4b509..6197cc8754 100644 --- a/lib/OpenLayers/Tile/WFS.js +++ b/lib/OpenLayers/Tile/WFS.js @@ -28,6 +28,16 @@ OpenLayers.Tile.WFS.prototype = this.features = new Array(); }, + /** + * + */ + destroy: function() { + for(var i=0; i < this.features.length; i**) { + this.features[i].destroy(); + } + + }, + /** */ draw:function() {