Clone needs a fresh backBuffer and tileQueue.

This commit is contained in:
ahocevar
2012-03-19 21:09:43 +01:00
parent acd11005b6
commit d31a8da839
2 changed files with 7 additions and 1 deletions

View File

@@ -323,6 +323,9 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
// we do not want to copy reference to grid, so we make a new array
obj.grid = [];
obj.gridResolution = null;
// same for backbuffer and tile queue
obj.backBuffer = null;
obj.tileQueue = [];
return obj;
},