Skip to content

Commit

Permalink
Patch ImageOverlay.onRemove to handle null div
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmcd authored Aug 29, 2018
1 parent ae6306c commit cdde3b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arcgislink/src/arcgislink.js
Original file line number Diff line number Diff line change
Expand Up @@ -3739,8 +3739,10 @@ Layer.prototype.queryRelatedRecords = function(qparams, callback, errback) {
//div.style.height = (sw.y - ne.y) + 'px';
};
ImageOverlay.prototype.onRemove = function() {
this.div_.parentNode.removeChild(this.div_);
this.div_ = null;
if (this.div_) {
this.div_.parentNode.removeChild(this.div_);
this.div_ = null;
}
}
/**
* Creates a copyright control
Expand Down

0 comments on commit cdde3b2

Please sign in to comment.