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
This commit is contained in:
Schuyler Erle
2006-10-05 21:04:28 +00:00
parent 7ba704305a
commit 407604cc35

View File

@@ -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;
},