remove geometry components backwards - thanks for the catch flixo and review crschmidt (closes #1190).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -177,7 +177,7 @@ OpenLayers.Geometry.Collection = OpenLayers.Class(OpenLayers.Geometry, {
|
||||
if(!(components instanceof Array)) {
|
||||
components = [components];
|
||||
}
|
||||
for (var i = 0; i < components.length; i++) {
|
||||
for(var i=components.length-1; i>=0; --i) {
|
||||
this.removeComponent(components[i]);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user