diff --git a/src/imageloader.js b/src/imageloader.js index 85ea7b4c..365c5c79 100644 --- a/src/imageloader.js +++ b/src/imageloader.js @@ -234,7 +234,7 @@ $.ImageLoader.prototype = { * @param callback - Called once cleanup is finished. */ function completeJob(loader, job, callback) { - if (job.errorMsg !== '' && job.image === null && job.tries < 1 + loader.tileRetryMax) { + if (job.errorMsg !== '' && (job.image === null || job.image === undefined) && job.tries < 1 + loader.tileRetryMax) { loader.failedTiles.push(job); } var nextJob;