reverting r12243, because it breaks the loadend event (see #3419)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-08-13 09:17:24 +00:00
parent 0daaa12059
commit fd8003464e
2 changed files with 14 additions and 14 deletions

View File

@@ -39,16 +39,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile.BackBufferable, {
*/
frame: null,
/**
* Property: blankImageUrl
* {String} Does not result in a blank image on all browsers, but this is
* only required in some browsers as transparent backgroundImage, or as
* temporary image src while the tile is invisible and loading, so we don't
* care.
*/
blankImageUrl: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAQAIBRAA7",
/**
/**
* Property: imageReloadAttempts
* {Integer} Attempts to load the image.
*/
@@ -283,9 +274,10 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile.BackBufferable, {
* url - {String} or undefined to hide the image
*/
setImgSrc: function(url) {
var img = this.imgDiv;
img.style.display = "none";
img.src = url ? url : this.blankImageUrl;
this.imgDiv.style.display = "none";
if (url) {
this.imgDiv.src = url;
}
},
/**