Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

do not return too early from onImageLoad

  • Loading branch information...
commit 89388880b71ecb455ea76f171a6b7cc72c6be426 1 parent 1ee40ce
@elemoine authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/OpenLayers/Tile/Image.js
View
7 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;
Please sign in to comment.
Something went wrong with that request. Please try again.