Don't unlisten image twice when disposing an ol.ImageTile

Fixes #3325
This commit is contained in:
Frederic Junod
2015-03-17 12:07:12 +01:00
parent 752cf78e50
commit f474e7ccd9

View File

@@ -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');
};