diff --git a/lib/OpenLayers/Tile.js b/lib/OpenLayers/Tile.js index 56ea6a1c22..cbc53a949a 100644 --- a/lib/OpenLayers/Tile.js +++ b/lib/OpenLayers/Tile.js @@ -83,7 +83,7 @@ OpenLayers.Tile.prototype = { redraw = true; } - OpenLayers.Util.clearArray(this); + this.clear(); this.bounds = bounds.clone(); this.position = position.clone(); if (redraw) { @@ -121,3 +121,4 @@ OpenLayers.Tile.prototype = { CLASS_NAME: "OpenLayers.Tile" }; + diff --git a/lib/OpenLayers/Tile/WFS.js b/lib/OpenLayers/Tile/WFS.js index 59f321fb19..889873b089 100644 --- a/lib/OpenLayers/Tile/WFS.js +++ b/lib/OpenLayers/Tile/WFS.js @@ -58,7 +58,7 @@ OpenLayers.Tile.WFS.prototype = */ draw:function() { if (this.drawn) { - OpenLayers.Util.clearArray(this); + this.clear(); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && @@ -131,3 +131,4 @@ OpenLayers.Tile.WFS.prototype = } ); +