rem: element.onclick = onClick.bind(this, control); element.onmousedown = OpenLayers.Event.stop.bindAsEventListener(); element.onmouseup = OpenLayers.Event.stop.bindAsEventListener(); 
add: OpenLayers.Event.observe(element, "click", onClick.bind(this, control)); OpenLayers.Event.observe(element, "mousedown", OpenLayers.Event.stop.bindAsEventListener()); OpenLayers.Event.observe(element, "mouseup", OpenLayers.Event.stop.bindAsEventListener()); 
context:     redraw: function() {        this.div.innerHTML = "";        if (this.active) {            for (var i = 0; i < this.controls.length; i++) {                var element = document.createElement("div");                var textNode = document.createTextNode(" ");                if (this.controls[i].active) {                    element.className = this.controls[i].displayClass + "ItemActive";                } else {                        element.className = this.controls[i].displayClass + "ItemInactive";                }                    var onClick = function (ctrl, evt) {                    OpenLayers.Event.stop(evt ? evt : window.event);                    this.activateControl(ctrl);                };                var control = this.controls[i];                element.onclick = onClick.bind(this, control);                element.onmousedown = OpenLayers.Event.stop.bindAsEventListener();                element.onmouseup = OpenLayers.Event.stop.bindAsEventListener();                this.div.appendChild(element);            }        }    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/ee5d8eb73f045252b8476164b4d1697bce7bf61e/Panel.js/clean/lib/OpenLayers/Control/Panel.js