From 9334143941b16e748d5d06c20a5573c79ecd18c8 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Mon, 2 May 2011 15:16:03 -0700 Subject: [PATCH] a couple syntax fixes --- pdf.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pdf.js b/pdf.js index bfcaa48a3..6ae38d798 100644 --- a/pdf.js +++ b/pdf.js @@ -117,13 +117,13 @@ var Lexer = (function() { }, getChar: function() { var ch = this.lookChar(); - this.pos++: + this.pos++; return ch; }, - putBack(): function() { + putBack: function() { this.pos--; }, - skipChar(): function() { + skipChar: function() { this.pos++; }, getNumber: function(ch) { @@ -386,7 +386,7 @@ var Parser = (function() { refill: function() { this.buf1 = lexer.getObj(); this.buf2 = lexer.getObj(); - } + }, shift: function() { if (this.inlineImg > 0) { if (this.inlineImg < 2) { @@ -496,7 +496,7 @@ var Linearization = (function () { } constructor.prototype = { - function getInt(name) { + getInt: function(name) { var linDict = this.linDict; var obj; if (!linDict.isDict() && @@ -507,7 +507,7 @@ var Linearization = (function () { error("'" + name + "' field in linearization table is invalid"); return 0; }, - function getHint(index) { + getHint: function(index) { var linDict = this.linDict; var obj1, obj2; if (linDict.isDict() &&