Don't stop executeIRQueue if there is no continueCallback. What a wonderful world it would be with generators :(
This commit is contained in:
parent
0f6bf30228
commit
20d8a13c9e
5
pdf.js
5
pdf.js
@ -4922,10 +4922,13 @@ var CanvasGraphics = (function() {
|
|||||||
}
|
}
|
||||||
// If the execution took longer then a certain amount of time, shedule
|
// If the execution took longer then a certain amount of time, shedule
|
||||||
// to continue exeution after a short delay.
|
// to continue exeution after a short delay.
|
||||||
else if ((Date.now() - startTime) > kExecutionTime) {
|
// However, this is only possible if a 'continueCallback' is passed in.
|
||||||
|
else if (continueCallback &&
|
||||||
|
(Date.now() - startTime) > kExecutionTime) {
|
||||||
setTimeout(continueCallback, 0);
|
setTimeout(continueCallback, 0);
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the IRQueue isn't executed completly yet OR the execution time
|
// If the IRQueue isn't executed completly yet OR the execution time
|
||||||
// was short enough, do another execution round.
|
// was short enough, do another execution round.
|
||||||
} while (true);
|
} while (true);
|
||||||
|
Loading…
Reference in New Issue
Block a user