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

@@ -204,7 +204,7 @@ OpenLayers.Tile.Image.IFrame = {
*/
createBackBuffer: function() {
var backBuffer;
if(!this.useIFrame) {
if(this.useIFrame === false) {
backBuffer = OpenLayers.Tile.Image.prototype.createBackBuffer.call(this);
}
return backBuffer;