Ticket #815: Feature.patch
| File Feature.patch, 1.1 kB (added by bartvde, 2 years ago) |
|---|
-
/data/home/bart/Feature.js
old new 139 139 140 140 var id = this.id + "_popup"; 141 141 var anchor = (this.marker) ? this.marker.icon : null; 142 143 this.popup = new OpenLayers.Popup.AnchoredBubble(id, 142 143 if (!this.popup) { 144 this.popup = new OpenLayers.Popup.AnchoredBubble(id, 144 145 this.lonlat, 145 146 this.data.popupSize, 146 147 this.data.popupContentHTML, 147 148 anchor, closeBox); 149 } 148 150 } 149 151 return this.popup; 150 152 }, … … 154 156 * should also be able to override the destruction 155 157 */ 156 158 destroyPopup: function() { 157 this.popup.destroy() 159 if (this.popup) { 160 this.popup.destroy(); 161 } 162 this.popup = null; 158 163 }, 159 164 160 165 /** @final @type String */
