diff --git a/src/ol/imagetile.js b/src/ol/imagetile.js index 1baec02742..e042e1fbcd 100644 --- a/src/ol/imagetile.js +++ b/src/ol/imagetile.js @@ -68,7 +68,9 @@ goog.inherits(ol.ImageTile, ol.Tile); * @inheritDoc */ ol.ImageTile.prototype.disposeInternal = function() { - this.unlistenImage_(); + if (this.state == ol.TileState.LOADING) { + this.unlistenImage_(); + } goog.base(this, 'disposeInternal'); };