rewrite but this time not killing array structure by setting to a new var

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1189 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-10 06:36:14 +00:00
parent a6af08b092
commit 16a0ecf41a

View File

@@ -48,8 +48,9 @@ OpenLayers.Tile.WFS.prototype =
* be reused in a new location.
*/
clear: function() {
for(var i=0; i < this.features.length; i++) {
this.features[i].destroy();
while(this.features.length > 0) {
var feature = this.features.shift();
feature.destroy();
}
},