From 4444120ecfd3f29ebf2003f489600ffda91a3639 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Thu, 12 May 2016 21:21:21 +0100 Subject: [PATCH] PDF.js version 1.5.256 - See mozilla/pdf.js@1c0433586e1d2e59c2d93f4b565a28055eaaeeb4 --- bower.json | 2 +- build/pdf.combined.js | 4 ++-- build/pdf.js | 4 ++-- build/pdf.worker.js | 4 ++-- package.json | 2 +- web/compatibility.js | 5 ++++- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/bower.json b/bower.json index e849fc7f5..8071e619b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.254", + "version": "1.5.256", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 86823d509..66b12d94a 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.5.254'; -var pdfjsBuild = 'b261203'; +var pdfjsVersion = '1.5.256'; +var pdfjsBuild = '1c04335'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.js b/build/pdf.js index ac99b6670..da62fbd11 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.5.254'; -var pdfjsBuild = 'b261203'; +var pdfjsVersion = '1.5.256'; +var pdfjsBuild = '1c04335'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 6653f763b..34bad22d4 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {})); // Use strict in our context only - users might not want it 'use strict'; -var pdfjsVersion = '1.5.254'; -var pdfjsBuild = 'b261203'; +var pdfjsVersion = '1.5.256'; +var pdfjsBuild = '1c04335'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? diff --git a/package.json b/package.json index 8f52f8d43..6dfa39dbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.5.254", + "version": "1.5.256", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ diff --git a/web/compatibility.js b/web/compatibility.js index 1119a2742..2874bcb12 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -14,7 +14,8 @@ */ /* globals VBArray, PDFJS */ -'use strict'; +(function compatibilityWrapper() { + 'use strict'; // Initializing PDFJS global object here, it case if we need to change/disable // some PDF.js features, e.g. range requests @@ -591,3 +592,5 @@ if (typeof PDFJS === 'undefined') { configurable: true }); })(); + +}).call((typeof window === 'undefined') ? this : window);