mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Group public/private methods and add comments
This patch: - Puts public methods at the top of the file - Puts private methods below the public methods and marks them with an underscore - Adds JSDoc comments to the class - Adds setDocumentAndUrl to avoid having to handle that in `viewer.js`
This commit is contained in:
parent
7cf440c560
commit
1a5de56675
2 changed files with 73 additions and 29 deletions
|
@ -856,9 +856,7 @@ var PDFViewerApplication = {
|
|||
|
||||
this.pdfDocument = pdfDocument;
|
||||
|
||||
this.pdfDocumentProperties.url = this.url;
|
||||
this.pdfDocumentProperties.pdfDocument = pdfDocument;
|
||||
this.pdfDocumentProperties.resolveDataAvailable();
|
||||
this.pdfDocumentProperties.setDocumentAndUrl(pdfDocument, this.url);
|
||||
|
||||
var downloadedPromise = pdfDocument.getDownloadInfo().then(function() {
|
||||
self.downloadComplete = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue