Followup to #449: Missed part of the commit, which protects against doing
a checkImgURL on a tile which has been destroyed. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2092 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -143,9 +143,13 @@ OpenLayers.Tile.Image.prototype =
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
checkImgURL: function () {
|
checkImgURL: function () {
|
||||||
var loaded = this.layer.alpha ? this.imgDiv.firstChild.src : this.imgDiv.src;
|
// Sometimes our image will load after it has already been removed
|
||||||
if (loaded != this.url) {
|
// from the map, in which case this check is not needed.
|
||||||
this.imgDiv.style.display = "none";
|
if (this.layer) {
|
||||||
|
var loaded = this.layer.alpha ? this.imgDiv.firstChild.src : this.imgDiv.src;
|
||||||
|
if (loaded != this.url) {
|
||||||
|
this.imgDiv.style.display = "none";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user