Add the missing this.layername in TileCache constructor (in clone function), add a unit test for this function (Closes #1180)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -71,8 +71,9 @@ OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
||||
|
||||
if (obj == null) {
|
||||
obj = new OpenLayers.Layer.TileCache(this.name,
|
||||
this.url,
|
||||
this.options);
|
||||
this.url,
|
||||
this.layername,
|
||||
this.options);
|
||||
}
|
||||
|
||||
//get all additions from superclasses
|
||||
|
||||
Reference in New Issue
Block a user