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:
@@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user