Refactors draw method in PDFPageView; makes optional some PDFPageViewOptions options

This commit is contained in:
Yury Delendik 2014-12-17 14:47:14 -06:00
parent 2ac7ac4678
commit 2565e627a3
6 changed files with 84 additions and 17 deletions

View file

@ -165,7 +165,10 @@ var PDFRenderingQueue = (function PDFRenderingQueueClosure() {
break;
case RenderingStates.INITIAL:
this.highestPriorityPage = view.renderingId;
view.draw(this.renderHighestPriority.bind(this));
var continueRendering = function () {
this.renderHighestPriority();
}.bind(this);
view.draw().then(continueRendering, continueRendering);
break;
}
return true;