From 89388880b71ecb455ea76f171a6b7cc72c6be426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Sat, 8 Oct 2011 00:22:22 +0200 Subject: [PATCH] do not return too early from onImageLoad --- lib/OpenLayers/Tile/Image.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/OpenLayers/Tile/Image.js b/lib/OpenLayers/Tile/Image.js index 7d6269c348..087693d79f 100644 --- a/lib/OpenLayers/Tile/Image.js +++ b/lib/OpenLayers/Tile/Image.js @@ -349,11 +349,8 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile.BackBufferable, { // IE<7 needs a reflow when the tiles are loaded because of the // percentage based positioning. Otherwise nothing is shown // until the user interacts with the map in some way. - if (parseFloat(navigator.appVersion.split("MSIE")[1]) < 7) { - if (!this.layer || !this.layer.div) { - // nothing to do if the layer is destroyed already - return; - } + if (parseFloat(navigator.appVersion.split("MSIE")[1]) < 7 && + this.layer && this.layer.div) { var span = document.createElement("span"); span.style.display = "none"; var layerDiv = this.layer.div;