[Pkg-javascript-commits] [pdf.js] 89/116: Add JSDoc comments to PDFAttachmentView
David Prévot
taffit at moszumanska.debian.org
Fri Mar 6 16:20:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 818b7fc3069ef02b48b60071bf53c9faabb690c0
Author: Tim van der Meij <timvandermeij at gmail.com>
Date: Tue Jan 27 22:22:42 2015 +0100
Add JSDoc comments to PDFAttachmentView
---
web/pdf_attachment_view.js | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/web/pdf_attachment_view.js b/web/pdf_attachment_view.js
index 6e8883f..2ccce3c 100644
--- a/web/pdf_attachment_view.js
+++ b/web/pdf_attachment_view.js
@@ -18,7 +18,21 @@
'use strict';
+/**
+ * @typedef {Object} PDFAttachmentViewOptions
+ * @property {HTMLDivElement} container - The viewer element.
+ * @property {Array} attachments - An array of attachment objects.
+ * @property {DownloadManager} downloadManager - The download manager.
+ */
+
+/**
+ * @class
+ */
var PDFAttachmentView = (function PDFAttachmentViewClosure() {
+ /**
+ * @constructs PDFAttachmentView
+ * @param {PDFAttachmentViewOptions} options
+ */
function PDFAttachmentView(options) {
this.container = options.container;
this.attachments = options.attachments;
@@ -33,6 +47,9 @@ var PDFAttachmentView = (function PDFAttachmentViewClosure() {
}
},
+ /**
+ * @private
+ */
_bindLink: function PDFAttachmentView_bindLink(button, item) {
button.onclick = function downloadFile(e) {
var content = item.content;
--
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