ctx.translate(-this.x * scale, -this.y * scale);
stats.begin = Date.now();
- this.content.startRendering(ctx, this.updateStats, function(e) {
- PDFView.error('An error occured while rendering the page.', e);
- });
- this.content.startRendering(ctx, (function pageViewDrawCallback() {
- this.updateStats();
- if (this.onAfterDraw)
- this.onAfterDraw();
- }).bind(this));
++ this.content.startRendering(ctx,
++ (function pageViewDrawCallback() {
++ this.updateStats();
++ if (this.onAfterDraw)
++ this.onAfterDraw();
++ }).bind(this),
++ function pageViewErrorback(e) {
++ PDFView.error('An error occured while rendering the page.', e);
++ }
++ );
setupLinks(this.content, this.scale);
div.setAttribute('data-loaded', true);