From 6d40072b4fd279bec9e20e8a9a6263fbe33dd438 Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 5 Jun 2006 15:57:38 +0000 Subject: [PATCH] just to be absolutely sure... git-svn-id: http://svn.openlayers.org/trunk/openlayers@514 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 f6280a29d6..96a2a0f235 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.parentNode == this.layer.div) { + if ((this.img) && (this.img.parentNode == this.layer.div)) { this.layer.div.removeChild(this.img); } this.img = null;