diff --git a/src/imageloader.js b/src/imageloader.js index 2dbbb3a8..85ea7b4c 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.tries < 1 + loader.tileRetryMax) { loader.failedTiles.push(job); } var nextJob;