Merge pull request #3360 from fredj/dispose-imagetile

Don't unlisten image twice when disposing an ol.ImageTile
This commit is contained in:
Frédéric Junod
2015-03-18 11:46:09 +01:00

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