Use strict and expose in build version

This commit is contained in:
Saebekassebil 2012-03-28 20:07:37 +02:00
parent 102469d20c
commit 10fb0dc383
2 changed files with 4 additions and 2 deletions

View File

@ -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();

View File

@ -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');