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:
Tim van der Meij 2015-04-24 21:01:03 +02:00
parent 7cf440c560
commit 1a5de56675
2 changed files with 73 additions and 29 deletions

View file

@ -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;