just to be absolutely sure...

git-svn-id: http://svn.openlayers.org/trunk/openlayers@514 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-05 15:57:38 +00:00
parent 7999a4fc06
commit 6d40072b4f

View File

@@ -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;