Ticket #555: popupEvents.patch
| File popupEvents.patch, 0.7 kB (added by euzuro, 2 years ago) |
|---|
-
lib/OpenLayers/Popup.js
old new 104 104 closeImg.style.top = this.padding + "px"; 105 105 this.div.appendChild(closeImg); 106 106 107 var closeEvents = new OpenLayers.Events(this, closeImg); 108 closeEvents.register("mousedown", this, this.hide); 107 var closePopup = function(e) { 108 this.hide(); 109 OpenLayers.Event.stop(e); 110 } 111 OpenLayers.Event.observe(closeImg, "click", 112 closePopup.bindAsEventListener(this)); 109 113 110 114 } 111 115
