make a destroy method and a clear grid. preventing circular refrences and memory leaks

git-svn-id: http://svn.openlayers.org/trunk/openlayers@184 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-19 16:25:19 +00:00
parent 54f519a255
commit 20a13f43a6
2 changed files with 30 additions and 1 deletions
+8
View File
@@ -42,6 +42,14 @@ OpenLayers.Tile.prototype = {
this.size = size;
}
},
/** nullify references to prevent circular references and memory leaks
*/
destroy:function() {
this.grid = null;
this.bounds = null;
this.size = null;
},
/**
*/