when we destroy a grid layer, destroy all of its tiles

git-svn-id: http://svn.openlayers.org/trunk/openlayers@540 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-07 16:07:26 +00:00
parent 7e6b3b2a34
commit 85b14a3c93

View File

@@ -35,6 +35,16 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
OpenLayers.Layer.Grid.TILE_HEIGHT);
},
/**
*
*/
destroy: function() {
this.params = null;
this.clearGrid();
this.grid = null;
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
},
setTileSize: function (size) {
this.tileSize = size.copyOf();
},