Fixing IFrame tile layers.

A problem introduced with 5fda8835da can easily be solved by re-adding a check for imgDiv and a strict type check for useIFrame. Thanks @elemoine for pointing out that there could be a problem.
This commit is contained in:
ahocevar
2011-12-22 01:14:04 +01:00
parent 1284dca5ec
commit 7fbae9f345
2 changed files with 4 additions and 1 deletions

View File

@@ -339,6 +339,9 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
* or if it's currently loading.
*/
createBackBuffer: function() {
if (!this.imgDiv || this.isLoading) {
return;
}
var backBuffer;
if (this.frame) {
backBuffer = this.frame.cloneNode(false);