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.
|
* be reused in a new location.
|
||||||
*/
|
*/
|
||||||
clear: function() {
|
clear: function() {
|
||||||
for(var i=0; i < this.features.length; i++) {
|
while(this.features.length > 0) {
|
||||||
this.features[i].destroy();
|
var feature = this.features.shift();
|
||||||
|
feature.destroy();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user