mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Remove warning from cache attaching if the tile has already reference.
This commit is contained in:
parent
0bc7deccd7
commit
1851405fcf
@ -450,12 +450,15 @@
|
|||||||
this._type = type;
|
this._type = type;
|
||||||
}
|
}
|
||||||
this._tiles.push(tile);
|
this._tiles.push(tile);
|
||||||
} else if (!this._tiles.includes(tile) && this.type && this._promise) {
|
|
||||||
// here really check we are loaded, since if optimization allows sending no data and we add tile without
|
|
||||||
// proper initialization it is a bug
|
|
||||||
this._tiles.push(tile);
|
|
||||||
} else {
|
} else {
|
||||||
$.console.warn("Tile %s caching attempt without data argument on uninitialized cache entry!", tile);
|
const tileExists = this._tiles.includes(tile);
|
||||||
|
if (!tileExists && this.type && this._promise) {
|
||||||
|
// here really check we are loaded, since if optimization allows sending no data and we add tile without
|
||||||
|
// proper initialization it is a bug
|
||||||
|
this._tiles.push(tile);
|
||||||
|
} else if (!tileExists) {
|
||||||
|
$.console.warn("Tile %s caching attempt without data argument on uninitialized cache entry!", tile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user