From 9f9c366154d8d1e3e82af85214ec3378f8745ecf Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 26 Oct 2006 15:22:37 +0000 Subject: [PATCH] Apply patch for #376 - fixing tile.clear() calls that were mistakenly replaced with OpenLayers.Util.clearArray() at r1590 git-svn-id: http://svn.openlayers.org/trunk/openlayers@1738 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Tile.js | 3 ++- lib/OpenLayers/Tile/WFS.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 = } ); +