mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Add JSDoc comments to PDFAttachmentView
This commit is contained in:
parent
4c6ca1c78f
commit
818b7fc306
1 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue