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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user