rem: for(var i=0; i < this.baseLayerInputs.length; i++) { var input = this.baseLayerInputs[i]; if (input.checked) { this.map.setBaseLayer(input.layer, false); 
add: for(var i=0; i < this.baseLayers.length; i++) { var layerEntry = this.baseLayers[i]; if (layerEntry.inputElem.checked) { this.map.setBaseLayer(layerEntry.layer, false); 
context:     updateMap: function() {        // set the newly selected base layer                for(var i=0; i < this.baseLayerInputs.length; i++) {            var input = this.baseLayerInputs[i];               if (input.checked) {                this.map.setBaseLayer(input.layer, false);            }        }        // set the correct visibilities for the overlays        for(var i=0; i < this.dataLayerInputs.length; i++) {            var input = this.dataLayerInputs[i];               input.layer.setVisibility(input.checked, true);        }    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/861c105071495b04a1dd9c0a84608cb8ab208734/LayerSwitcher.js/buggy/lib/OpenLayers/Control/LayerSwitcher.js