#645 - layer.removeFeatures backs through the features array to ensure that all features are removed

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3036 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-04-09 15:29:31 +00:00
parent 1603d5a8ba
commit 26925a89f1
2 changed files with 2 additions and 4 deletions

View File

@@ -254,7 +254,7 @@ OpenLayers.Layer.Vector.prototype =
features = [features];
}
for (var i = 0; i < features.length; i++) {
for (var i = features.length - 1; i >= 0; i--) {
var feature = features[i];
this.features = OpenLayers.Util.removeItem(this.features, feature);