mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Refactor API to be async.
This commit is contained in:
parent
73cab9c302
commit
fd58f04117
3 changed files with 28 additions and 27 deletions
|
@ -986,7 +986,7 @@ var PageView = function pageView(container, pdfPage, id, scale,
|
|||
if (error)
|
||||
PDFView.error('An error occurred while rendering the page.', error);
|
||||
|
||||
self.stats = content.stats;
|
||||
self.stats = pdfPage.stats;
|
||||
self.updateStats();
|
||||
if (self.onAfterDraw)
|
||||
self.onAfterDraw();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue