1
0
Fork 0
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:
Brendan Dahl 2012-04-11 16:47:42 -07:00
parent 73cab9c302
commit fd58f04117
3 changed files with 28 additions and 27 deletions

View file

@ -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();