Unregister image listeners when disposing of a tile
This commit is contained in:
@@ -64,6 +64,15 @@ ol.ImageTile = function(tileCoord, state, src, crossOrigin, tileLoadFunction) {
|
|||||||
goog.inherits(ol.ImageTile, ol.Tile);
|
goog.inherits(ol.ImageTile, ol.Tile);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
ol.ImageTile.prototype.disposeInternal = function() {
|
||||||
|
this.unlistenImage_();
|
||||||
|
goog.base(this, 'disposeInternal');
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
* @api
|
* @api
|
||||||
|
|||||||
Reference in New Issue
Block a user