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
This commit is contained in:
euzuro
2006-06-05 17:08:29 +00:00
parent 9445defb69
commit 97185540fa

View File

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