Use strict and expose in build version
This commit is contained in:
parent
102469d20c
commit
10fb0dc383
@ -1,4 +1,6 @@
|
||||
var Metadata = (function MetadataClosure() {
|
||||
'use strict';
|
||||
|
||||
var Metadata = PDFJS.Metadata = (function MetadataClosure() {
|
||||
function Metadata(meta) {
|
||||
if (typeof meta === 'string') {
|
||||
var parser = new DOMParser();
|
||||
|
@ -506,7 +506,7 @@ var PDFView = {
|
||||
var pdfTitle;
|
||||
|
||||
if (metadata) {
|
||||
this.metadata = metadata = new Metadata(metadata);
|
||||
this.metadata = metadata = new PDFJS.Metadata(metadata);
|
||||
|
||||
if (metadata.has('dc:title'))
|
||||
pdfTitle = metadata.get('dc:title');
|
||||
|
Loading…
Reference in New Issue
Block a user