var onClick = function (ctrl, evt) { OpenLayers.Event.stop(evt ? evt : window.event); this.activateControl(ctrl); }; var control = this.controls[i]; 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()); 
    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];                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());                this.div.appendChild(element);            }        }    },
2032	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2032/d68caa00a5fd55a36d8fa5aa86a80a65ad8ca0be/Panel.js/buggy/lib/OpenLayers/Control/Panel.js