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
This commit is contained in:
euzuro
2006-06-02 16:03:52 +00:00
parent 51371a1ecf
commit f85fb1674d

View File

@@ -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() {