forked from mystiq/hydrogen-web
Add a note on TilesCollection and diposing of tiles
This commit is contained in:
parent
28248722a3
commit
99a630fb84
1 changed files with 2 additions and 0 deletions
|
@ -181,6 +181,8 @@ export class TilesCollection extends BaseObservableList {
|
|||
}
|
||||
|
||||
_replaceTile(tileIdx, existingTile, newTile, updateParams) {
|
||||
// TODO What happens with a tile that's being replied to? Can we have
|
||||
// reference counting of some sort?
|
||||
existingTile.dispose();
|
||||
const prevTile = this._getTileAtIdx(tileIdx - 1);
|
||||
const nextTile = this._getTileAtIdx(tileIdx + 1);
|
||||
|
|
Loading…
Reference in a new issue