Browse Source

Remove a redundant `PDFViewer.currentScale` call from `PDFViewerApplication.load`

Since this call occurs *before* the `PDFViewer.setDocument` call, it won't actually cause any scale change.
Furthermore, moving it should not be necessary, since the `scale` is already used as the fallback case in `PDFViewerApplication.setInitialView` (provided it's non-zero, which isn't even the case in the default viewer).

Hence this patch should cause no functional changes at all, since it simply removes a piece of unnecessary code.
Jonas Jenwald 8 years ago
parent
commit
4aab3cef4a
  1. 1
      web/app.js

1
web/app.js

@ -907,7 +907,6 @@ var PDFViewerApplication = { @@ -907,7 +907,6 @@ var PDFViewerApplication = {
this.pdfDocumentProperties.setDocument(pdfDocument, this.url);
let pdfViewer = this.pdfViewer;
pdfViewer.currentScale = scale;
pdfViewer.setDocument(pdfDocument);
let firstPagePromise = pdfViewer.firstPagePromise;
let pagesPromise = pdfViewer.pagesPromise;

Loading…
Cancel
Save