[Pkg-javascript-commits] [pdf.js] 11/141: Remove superfluous 'self' variable from web/document_properties.js
David Prévot
taffit at moszumanska.debian.org
Sat Apr 19 22:40:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit c7a0b68d9addfecba498008b350ad771d0442822
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Mon Mar 31 23:16:44 2014 +0200
Remove superfluous 'self' variable from web/document_properties.js
---
web/document_properties.js | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
diff --git a/web/document_properties.js b/web/document_properties.js
index e5da09d..0010f10 100644
--- a/web/document_properties.js
+++ b/web/document_properties.js
@@ -74,8 +74,6 @@ var DocumentProperties = {
},
getProperties: function documentPropertiesGetProperties() {
- var self = this;
-
// Get the file name.
this.fileName = getPDFFileNameFromURL(PDFView.url);
@@ -88,20 +86,20 @@ var DocumentProperties = {
// Get the other document properties.
PDFView.pdfDocument.getMetadata().then(function(data) {
var fields = [
- { field: self.fileNameField, content: self.fileName },
+ { field: this.fileNameField, content: this.fileName },
// The fileSize field is updated once getDownloadInfo is resolved.
- { field: self.titleField, content: data.info.Title },
- { field: self.authorField, content: data.info.Author },
- { field: self.subjectField, content: data.info.Subject },
- { field: self.keywordsField, content: data.info.Keywords },
- { field: self.creationDateField,
- content: self.parseDate(data.info.CreationDate) },
- { field: self.modificationDateField,
- content: self.parseDate(data.info.ModDate) },
- { field: self.creatorField, content: data.info.Creator },
- { field: self.producerField, content: data.info.Producer },
- { field: self.versionField, content: data.info.PDFFormatVersion },
- { field: self.pageCountField, content: PDFView.pdfDocument.numPages }
+ { field: this.titleField, content: data.info.Title },
+ { field: this.authorField, content: data.info.Author },
+ { field: this.subjectField, content: data.info.Subject },
+ { field: this.keywordsField, content: data.info.Keywords },
+ { field: this.creationDateField,
+ content: this.parseDate(data.info.CreationDate) },
+ { field: this.modificationDateField,
+ content: this.parseDate(data.info.ModDate) },
+ { field: this.creatorField, content: data.info.Creator },
+ { field: this.producerField, content: data.info.Producer },
+ { field: this.versionField, content: data.info.PDFFormatVersion },
+ { field: this.pageCountField, content: PDFView.pdfDocument.numPages }
];
// Show the properties in the dialog.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list