add:     for (var i = 0; i < controls.length; i++) { var element = document.createElement("div"); var textNode = document.createTextNode(" "); controls[i].panel_div = element; OpenLayers.Event.observe(controls[i].panel_div, "click", this.onClick.bind(this, controls[i])); OpenLayers.Event.observe(controls[i].panel_div, "mousedown", OpenLayers.Event.stop.bindAsEventListener()); OpenLayers.Event.observe(controls[i].panel_div, "mouseup", OpenLayers.Event.stop.bindAsEventListener()); }  
context:     addControls: function(controls) {        if (!(controls instanceof Array)) {            controls = [controls];        }        this.controls = this.controls.concat(controls);        if (this.map) { // map.addControl() has already been called on the panel            for (var i = 0; i < controls.length; i++) {                this.map.addControl(controls[i]);                controls[i].deactivate();            }            this.redraw();        }    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/d68caa00a5fd55a36d8fa5aa86a80a65ad8ca0be/Panel.js/clean/lib/OpenLayers/Control/Panel.js