OpenLayers OpenLayers

Changeset 1320

Show
Ignore:
Timestamp:
08/21/06 15:20:52 (2 years ago)
Author:
crschmidt
Message:

Sometimes we call moveTo on a tile before we've actually created an image,
in which case clearing the image caused an error.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.0/lib/OpenLayers/Tile/Image.js

    r1212 r1320  
    6565    clear: function() { 
    6666        OpenLayers.Tile.prototype.clear.apply(this, arguments); 
    67         this.imgDiv.style.display = "none"; 
     67        if(this.imgDiv) { 
     68            this.imgDiv.style.display = "none"; 
     69        } 
    6870    }, 
    6971