remove local scope variables from global namespace.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5028 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -591,7 +591,7 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
// if we removed the base layer, need to set a new one
|
||||
if (setNewBaseLayer && (this.baseLayer == layer)) {
|
||||
this.baseLayer = null;
|
||||
for(i=0; i < this.layers.length; i++) {
|
||||
for(var i=0; i < this.layers.length; i++) {
|
||||
var iLayer = this.layers[i];
|
||||
if (iLayer.isBaseLayer) {
|
||||
this.setBaseLayer(iLayer);
|
||||
|
||||
Reference in New Issue
Block a user