Merge pull request #307 from kkujala/master

Avoid browser-test stoppage when task.pdfDoc is undefined.
This commit is contained in:
Andreas Gal 2011-08-06 13:55:45 -07:00
commit 3a87671c75

View File

@ -79,7 +79,7 @@ function nextTask() {
}
function isLastPage(task) {
return (task.pdfDoc && (task.pageNum > task.pdfDoc.numPages));
return (!task.pdfDoc || (task.pageNum > task.pdfDoc.numPages));
}
function nextPage(task, loadError) {