From 97185540faf804a65c852ecc0a41f43da71f8f27 Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 5 Jun 2006 17:08:29 +0000 Subject: [PATCH] not sure if this is necessary or not, but just in case git-svn-id: http://svn.openlayers.org/trunk/openlayers@521 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Tile/Image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Tile/Image.js b/lib/OpenLayers/Tile/Image.js index 96a2a0f235..f8bd639bcf 100644 --- a/lib/OpenLayers/Tile/Image.js +++ b/lib/OpenLayers/Tile/Image.js @@ -23,7 +23,7 @@ OpenLayers.Tile.Image.prototype = }, destroy: function() { - if ((this.img) && (this.img.parentNode == this.layer.div)) { + if ((this.img != null) && (this.img.parentNode == this.layer.div)) { this.layer.div.removeChild(this.img); } this.img = null;