Fix lints.

This commit is contained in:
Brendan Dahl 2011-11-29 11:32:01 -08:00
parent b40af3555b
commit cddb106358
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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,

View File

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