From 407604cc35ebba87495e710479b7ca1c2184439b Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Thu, 5 Oct 2006 21:04:28 +0000 Subject: [PATCH] Set the new layer.grid to a new Array object, rather than null, in Layer.Grid.clone(). Passes all tests. Fixes #203. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1616 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Grid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 6737fefab2..2265a9bcee 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -69,8 +69,8 @@ OpenLayers.Layer.Grid.prototype = obj.tileSize = this.tileSize.clone(); } - // we do not want to copy reference to grid. that should stay at null - obj.grid = null; + // we do not want to copy reference to grid, so we make a new array + obj.grid = new Array(); return obj; },