rem: if (!(baseLayer && checked)) { Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); } 
add: Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); 
context:     redraw: function() {        //clear out previous layers         this.baseLayersDiv.innerHTML = "";        this.baseLayerInputs = new Array();                this.dataLayersDiv.innerHTML = "";        this.dataLayerInputs = new Array();                var containsOverlays = false;                for( var i = 0; i < this.map.layers.length; i++) {            var layer = this.map.layers[i];            var baseLayer = layer.isBaseLayer;            if (!baseLayer) {                containsOverlays = true;            }            // only check a baselayer if it is *the* baselayer, check data            //  layers if they are visible            var checked = (baseLayer) ? (layer == this.map.baseLayer)                                      : layer.getVisibility();            // create input element            var inputElem = document.createElement("input");            inputElem.id = "input_" + layer.name;            inputElem.name = (baseLayer) ? "baseLayers" : layer.name;            inputElem.type = (baseLayer) ? "radio" : "checkbox";            inputElem.value = layer.name;            inputElem.checked = checked;            inputElem.layer = layer;                        // create span            var labelSpan = document.createElement("span");            labelSpan.innerHTML = layer.name;            labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "auto";            if (!(baseLayer && checked)) {                Event.observe(labelSpan,                               "click",                              this.onLabelClick.bindAsEventListener(inputElem));            }            // create line break            var br = document.createElement("br");                        var groupArray = (baseLayer) ? this.baseLayerInputs                                         : this.dataLayerInputs;            groupArray.push(inputElem);                                                             var groupDiv = (baseLayer) ? this.baseLayersDiv                                       : this.dataLayersDiv;            groupDiv.appendChild(inputElem);            groupDiv.appendChild(labelSpan);            groupDiv.appendChild(br);        }        // if no overlays, dont display the overlay label        this.dataLbl.style.display = (containsOverlays) ? "" : "none";                return this.div;    },
meta: 8310	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8310/b2ab65df12d963bbce1c2bd2d14b84ac30fa1b93/LayerSwitcher.js/clean/lib/OpenLayers/Control/LayerSwitcher.js