Fixed code formatting.
This commit is contained in:
parent
d6cb3cbbd7
commit
2fbfed476e
@ -134,7 +134,8 @@ var Catalog = (function CatalogClosure() {
|
|||||||
while (queue.length > 0) {
|
while (queue.length > 0) {
|
||||||
var i = queue.shift();
|
var i = queue.shift();
|
||||||
var outlineDict = xref.fetch(i.obj);
|
var outlineDict = xref.fetch(i.obj);
|
||||||
if(outlineDict != null){
|
if (outlineDict === null)
|
||||||
|
continue;
|
||||||
if (!outlineDict.has('Title'))
|
if (!outlineDict.has('Title'))
|
||||||
error('Invalid outline item');
|
error('Invalid outline item');
|
||||||
var dest = outlineDict.get('A');
|
var dest = outlineDict.get('A');
|
||||||
@ -169,7 +170,6 @@ var Catalog = (function CatalogClosure() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
obj = root.items.length > 0 ? root.items : null;
|
obj = root.items.length > 0 ? root.items : null;
|
||||||
return shadow(this, 'documentOutline', obj);
|
return shadow(this, 'documentOutline', obj);
|
||||||
},
|
},
|
||||||
@ -571,7 +571,7 @@ var XRef = (function XRefClosure() {
|
|||||||
},
|
},
|
||||||
getEntry: function xRefGetEntry(i) {
|
getEntry: function xRefGetEntry(i) {
|
||||||
var e = this.entries[i];
|
var e = this.entries[i];
|
||||||
if(e == null)
|
if (e === null)
|
||||||
return null;
|
return null;
|
||||||
return e.free ? null : e; // returns null is the entry is free
|
return e.free ? null : e; // returns null is the entry is free
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user