Ticket #572: id.patch
| File id.patch, 1.1 kB (added by euzuro, 2 years ago) |
|---|
-
lib/OpenLayers/Util.js
old new 175 175 176 176 image = document.createElement("img"); 177 177 178 //set generic properties 179 if (!id) { 180 id = OpenLayers.Util.createUniqueID("OpenLayersDiv"); 181 } 182 if (!position) { 183 position = "relative"; 184 } 185 OpenLayers.Util.modifyDOMElement(image, id, px, sz, position, 186 border, null, opacity); 187 178 188 if(delayDisplay) { 179 189 image.style.display = "none"; 180 190 OpenLayers.Event.observe(image, "load", … … 191 201 image.src = imgURL; 192 202 } 193 203 194 //set generic properties195 if (!id) {196 id = OpenLayers.Util.createUniqueID("OpenLayersDiv");197 }198 if (!position) {199 position = "relative";200 }201 OpenLayers.Util.modifyDOMElement(image, id, px, sz, position,202 border, null, opacity);203 204 204 205 205 206 return image;
