mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Add more debug data to error-logs.
Fix also a few gjslint errors.
This commit is contained in:
parent
e5e8b5a74a
commit
8ffbf683b8
3 changed files with 79 additions and 71 deletions
|
@ -84,7 +84,7 @@ var PDFView = {
|
|||
xhr.send(null);
|
||||
},
|
||||
|
||||
navigateTo: function (dest) {
|
||||
navigateTo: function(dest) {
|
||||
if (typeof dest === 'string')
|
||||
dest = this.destinations[dest];
|
||||
// dest array looks like that: <page-ref> </XYZ|FitXXX> <args..>
|
||||
|
@ -92,7 +92,8 @@ var PDFView = {
|
|||
var pageNumber = this.pagesRefMap[destRef.num + ' ' + destRef.gen + ' R'];
|
||||
if (pageNumber) {
|
||||
this.page = pageNumber;
|
||||
// TODO scroll to specific region on the page, the precise scaling required
|
||||
// TODO scroll to specific region on the page, the precise scaling
|
||||
// required.
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue