Introduces UMD headers to the web/ folder.
This commit is contained in:
parent
1c253e6e1d
commit
006e8fb59d
39 changed files with 836 additions and 281 deletions
|
@ -12,10 +12,25 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals mozL10n, getPDFFileNameFromURL, OverlayManager */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs-web/pdf_document_properties', ['exports',
|
||||
'pdfjs-web/ui_utils', 'pdfjs-web/overlay_manager'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('./ui_utils.js'), require('./overlay_manager.js'));
|
||||
} else {
|
||||
factory((root.pdfjsWebPDFDocumentProperties = {}), root.pdfjsWebUIUtils,
|
||||
root.pdfjsWebOverlayManager);
|
||||
}
|
||||
}(this, function (exports, uiUtils, overlayManager) {
|
||||
|
||||
var getPDFFileNameFromURL = uiUtils.getPDFFileNameFromURL;
|
||||
var mozL10n = uiUtils.mozL10n;
|
||||
var OverlayManager = overlayManager.OverlayManager;
|
||||
|
||||
/**
|
||||
* @typedef {Object} PDFDocumentPropertiesOptions
|
||||
* @property {string} overlayName - Name/identifier for the overlay.
|
||||
|
@ -222,3 +237,6 @@ var PDFDocumentProperties = (function PDFDocumentPropertiesClosure() {
|
|||
|
||||
return PDFDocumentProperties;
|
||||
})();
|
||||
|
||||
exports.PDFDocumentProperties = PDFDocumentProperties;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue