a couple syntax fixes
This commit is contained in:
parent
4c74c34924
commit
9334143941
12
pdf.js
12
pdf.js
@ -117,13 +117,13 @@ var Lexer = (function() {
|
|||||||
},
|
},
|
||||||
getChar: function() {
|
getChar: function() {
|
||||||
var ch = this.lookChar();
|
var ch = this.lookChar();
|
||||||
this.pos++:
|
this.pos++;
|
||||||
return ch;
|
return ch;
|
||||||
},
|
},
|
||||||
putBack(): function() {
|
putBack: function() {
|
||||||
this.pos--;
|
this.pos--;
|
||||||
},
|
},
|
||||||
skipChar(): function() {
|
skipChar: function() {
|
||||||
this.pos++;
|
this.pos++;
|
||||||
},
|
},
|
||||||
getNumber: function(ch) {
|
getNumber: function(ch) {
|
||||||
@ -386,7 +386,7 @@ var Parser = (function() {
|
|||||||
refill: function() {
|
refill: function() {
|
||||||
this.buf1 = lexer.getObj();
|
this.buf1 = lexer.getObj();
|
||||||
this.buf2 = lexer.getObj();
|
this.buf2 = lexer.getObj();
|
||||||
}
|
},
|
||||||
shift: function() {
|
shift: function() {
|
||||||
if (this.inlineImg > 0) {
|
if (this.inlineImg > 0) {
|
||||||
if (this.inlineImg < 2) {
|
if (this.inlineImg < 2) {
|
||||||
@ -496,7 +496,7 @@ var Linearization = (function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constructor.prototype = {
|
constructor.prototype = {
|
||||||
function getInt(name) {
|
getInt: function(name) {
|
||||||
var linDict = this.linDict;
|
var linDict = this.linDict;
|
||||||
var obj;
|
var obj;
|
||||||
if (!linDict.isDict() &&
|
if (!linDict.isDict() &&
|
||||||
@ -507,7 +507,7 @@ var Linearization = (function () {
|
|||||||
error("'" + name + "' field in linearization table is invalid");
|
error("'" + name + "' field in linearization table is invalid");
|
||||||
return 0;
|
return 0;
|
||||||
},
|
},
|
||||||
function getHint(index) {
|
getHint: function(index) {
|
||||||
var linDict = this.linDict;
|
var linDict = this.linDict;
|
||||||
var obj1, obj2;
|
var obj1, obj2;
|
||||||
if (linDict.isDict() &&
|
if (linDict.isDict() &&
|
||||||
|
Loading…
Reference in New Issue
Block a user