From b3c10c0892c6ba6445bf8d441435272be18cc6f0 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 9 Aug 2006 06:11:31 +0000 Subject: [PATCH] remove unused remove function, add new clear() function git-svn-id: http://svn.openlayers.org/trunk/openlayers@1149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Tile.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Tile.js b/lib/OpenLayers/Tile.js index 1e2b1f9261..93b06ce6f2 100644 --- a/lib/OpenLayers/Tile.js +++ b/lib/OpenLayers/Tile.js @@ -60,6 +60,7 @@ OpenLayers.Tile.prototype = { this.layer = null; this.bounds = null; this.size = null; + this.position = null; }, /** @@ -82,9 +83,12 @@ OpenLayers.Tile.prototype = { }, - /** remove this tile from the ds - */ - remove:function() { + /** Clear the tile of any bounds/position-related data so that it can + * be reused in a new location. + */ + clear: function() { + this.bounds = null; + this.position = null; }, /**