From cdde3b2571bf35fee028c3f0edbde81a395a91fa Mon Sep 17 00:00:00 2001 From: Stephen McDonald Date: Wed, 29 Aug 2018 15:25:42 +1000 Subject: [PATCH] Patch ImageOverlay.onRemove to handle null div --- arcgislink/src/arcgislink.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arcgislink/src/arcgislink.js b/arcgislink/src/arcgislink.js index 3cc0b10a..005d33ea 100644 --- a/arcgislink/src/arcgislink.js +++ b/arcgislink/src/arcgislink.js @@ -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