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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user