From 2bac64933a5d426e7283a82f32d9119906239a2c Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Mon, 30 Mar 2015 12:26:57 +0100 Subject: [PATCH] PDF.js version 1.1.28 --- bower.json | 2 +- build/pdf.combined.js | 15 ++++----------- build/pdf.js | 15 ++++----------- build/pdf.worker.js | 15 ++++----------- package.json | 2 +- 5 files changed, 14 insertions(+), 35 deletions(-) diff --git a/bower.json b/bower.json index 4762fa654..cc2a363aa 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.26", + "version": "1.1.28", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index fb851bbfa..aa7344ee6 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.26'; -PDFJS.build = '3821b2d'; +PDFJS.version = '1.1.28'; +PDFJS.build = 'a931885'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -239,17 +239,10 @@ function warn(msg) { // Fatal errors that should trigger the fallback UI and halt execution by // throwing an exception. function error(msg) { - // If multiple arguments were passed, pass them all to the log function. - if (arguments.length > 1) { - var logArguments = ['Error:']; - logArguments.push.apply(logArguments, arguments); - console.log.apply(console, logArguments); - // Join the arguments into a single string for the lines below. - msg = [].join.call(arguments, ' '); - } else { + if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.errors) { console.log('Error: ' + msg); + console.log(backtrace()); } - console.log(backtrace()); UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown); throw new Error(msg); } diff --git a/build/pdf.js b/build/pdf.js index a59730adc..1b0947fa7 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.26'; -PDFJS.build = '3821b2d'; +PDFJS.version = '1.1.28'; +PDFJS.build = 'a931885'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -239,17 +239,10 @@ function warn(msg) { // Fatal errors that should trigger the fallback UI and halt execution by // throwing an exception. function error(msg) { - // If multiple arguments were passed, pass them all to the log function. - if (arguments.length > 1) { - var logArguments = ['Error:']; - logArguments.push.apply(logArguments, arguments); - console.log.apply(console, logArguments); - // Join the arguments into a single string for the lines below. - msg = [].join.call(arguments, ' '); - } else { + if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.errors) { console.log('Error: ' + msg); + console.log(backtrace()); } - console.log(backtrace()); UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown); throw new Error(msg); } diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 914cfe587..63f01199e 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.26'; -PDFJS.build = '3821b2d'; +PDFJS.version = '1.1.28'; +PDFJS.build = 'a931885'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -239,17 +239,10 @@ function warn(msg) { // Fatal errors that should trigger the fallback UI and halt execution by // throwing an exception. function error(msg) { - // If multiple arguments were passed, pass them all to the log function. - if (arguments.length > 1) { - var logArguments = ['Error:']; - logArguments.push.apply(logArguments, arguments); - console.log.apply(console, logArguments); - // Join the arguments into a single string for the lines below. - msg = [].join.call(arguments, ' '); - } else { + if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.errors) { console.log('Error: ' + msg); + console.log(backtrace()); } - console.log(backtrace()); UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown); throw new Error(msg); } diff --git a/package.json b/package.json index 5a42463df..e27c48d78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.26", + "version": "1.1.28", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",