[OpenLayers-Commits] r12246 - trunk/openlayers/lib/OpenLayers/Tile
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Sun Aug 14 11:13:00 EDT 2011
Author: ahocevar
Date: 2011-08-14 08:12:59 -0700 (Sun, 14 Aug 2011)
New Revision: 12246
Modified:
trunk/openlayers/lib/OpenLayers/Tile/Image.js
Log:
reverting again - this time I broke things in Opera (see #3419)
Modified: trunk/openlayers/lib/OpenLayers/Tile/Image.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Tile/Image.js 2011-08-14 14:33:00 UTC (rev 12245)
+++ trunk/openlayers/lib/OpenLayers/Tile/Image.js 2011-08-14 15:12:59 UTC (rev 12246)
@@ -274,19 +274,9 @@
* url - {String} or undefined to hide the image
*/
setImgSrc: function(url) {
- var img = this.imgDiv;
- img.style.display = "none";
- // Setting img.src to "about:blank" would cause a broken image icon in
- // some browsers, but we only use it when style.display is set to
- // "none", so we don't care. We need this to prevent old images or
- // loading image placeholders to be shown when the image's display style
- // is set to "" in the onImageLoad method, which is called just before
- // the image is rendered in some browsers. Note that setting img.src to
- // "" would cause a request for the current page location being sent to
- // the server in most browsers.
- img.src = "about:blank";
+ this.imgDiv.style.display = "none";
if (url) {
- img.src = url;
+ this.imgDiv.src = url;
}
},
More information about the Commits
mailing list