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