mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-03 13:53:31 +03:00
Fix crash in debug mode when tile is missing.
This commit is contained in:
parent
13bfb4ecfc
commit
764d8f6f2c
1 changed files with 6 additions and 6 deletions
|
@ -1050,12 +1050,12 @@ function onTileLoad( tiledImage, tile, time, image, errorMsg ) {
|
|||
* @property {string} message - The error message.
|
||||
*/
|
||||
tiledImage.viewer.raiseEvent("tile-load-failed", {tile: tile, tiledImage: tiledImage, time: time, message: errorMsg});
|
||||
if( !tiledImage.debugMode ){
|
||||
tile.loading = false;
|
||||
tile.exists = false;
|
||||
return;
|
||||
}
|
||||
} else if ( time < tiledImage.lastResetTime ) {
|
||||
tile.loading = false;
|
||||
tile.exists = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if ( time < tiledImage.lastResetTime ) {
|
||||
$.console.log( "Ignoring tile %s loaded before reset: %s", tile, tile.url );
|
||||
tile.loading = false;
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue