From cddb1063588c5148338892e3c0ba940d13b76f55 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Tue, 29 Nov 2011 11:32:01 -0800 Subject: [PATCH] Fix lints. --- src/core.js | 2 +- src/worker.js | 2 +- web/viewer.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.js b/src/core.js index 8b814f027..a45030b3f 100644 --- a/src/core.js +++ b/src/core.js @@ -613,7 +613,7 @@ var PDFDoc = (function pdfDoc() { messageHandler.on('page_error', function pdfDocError(data) { var page = this.pageCache[data.pageNum]; if (page.errorback) - page.errorback(data.error) + page.errorback(data.error); else throw data.error; }, this); diff --git a/src/worker.js b/src/worker.js index 06b9c7a22..dc0ab9ead 100644 --- a/src/worker.js +++ b/src/worker.js @@ -79,7 +79,7 @@ var WorkerMessageHandler = { var page = pdfDoc.getPage(pageNum); // Pre compile the pdf page and fetch the fonts/images. var IRQueue = page.getIRQueue(handler, dependency); - } catch(e) { + } catch (e) { // Turn the error into an obj that can be serialized e = { message: e.message, diff --git a/web/viewer.js b/web/viewer.js index 066d04829..f3975c038 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -553,7 +553,7 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight, ctx.translate(-this.x * scale, -this.y * scale); stats.begin = Date.now(); - this.content.startRendering(ctx, + this.content.startRendering(ctx, (function pageViewDrawCallback() { this.updateStats(); if (this.onAfterDraw)