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