Eliminate any possible circular references to controls in OpenLayers.Map.destroy().

git-svn-id: http://svn.openlayers.org/trunk/openlayers@17 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2006-05-12 22:38:33 +00:00
parent aceaa334b3
commit c0bea6397a

View File

@@ -94,6 +94,10 @@ OpenLayers.Map.prototype = {
this.layers[i].destroy();
}
this.layers = null;
for(var i=0; i< this.controls.length; i++) {
this.controls[i].destroy();
}
this.controls = null;
},
/**