Merge pull request #677 from kkujala/test
Fix javascript strict warnings in driver.js.
This commit is contained in:
commit
303fc114b3
@ -66,7 +66,8 @@ function nextTask() {
|
|||||||
cleanup();
|
cleanup();
|
||||||
|
|
||||||
if (currentTaskIdx == manifest.length) {
|
if (currentTaskIdx == manifest.length) {
|
||||||
return done();
|
done();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
var task = manifest[currentTaskIdx];
|
var task = manifest[currentTaskIdx];
|
||||||
task.round = 0;
|
task.round = 0;
|
||||||
@ -86,7 +87,11 @@ function nextTask() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isLastPage(task) {
|
function isLastPage(task) {
|
||||||
return task.pageNum > task.pdfDoc.numPages || task.pageNum > task.pageLimit;
|
var limit = task.pageLimit || 0;
|
||||||
|
if (!limit || limit > task.pdfDoc.numPages)
|
||||||
|
limit = task.pdfDoc.numPages;
|
||||||
|
|
||||||
|
return task.pageNum > limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
function canvasToDataURL() {
|
function canvasToDataURL() {
|
||||||
|
Loading…
Reference in New Issue
Block a user