From b6ed2c4636400fe344c13853ff010d59935350b7 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:30:19 -0500 Subject: [PATCH] PDF.js version 1.0.535 --- bower.json | 2 +- build/pdf.combined.js | 4 ++-- build/pdf.js | 4 ++-- build/pdf.worker.js | 4 ++-- package.json | 2 +- web/compatibility.js | 6 +++--- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bower.json b/bower.json index 308207404..175986ed4 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.529", + "version": "1.0.535", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index f34081be3..ba3b61754 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.0.529'; -PDFJS.build = '6d6e09b'; +PDFJS.version = '1.0.535'; +PDFJS.build = '49142e9'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.js b/build/pdf.js index 59b62b908..7ff6bf016 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.0.529'; -PDFJS.build = '6d6e09b'; +PDFJS.version = '1.0.535'; +PDFJS.build = '49142e9'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 23942a07e..214b612a5 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.0.529'; -PDFJS.build = '6d6e09b'; +PDFJS.version = '1.0.535'; +PDFJS.build = '49142e9'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index f69902533..c7a8c54fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.529", + "version": "1.0.535", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla", diff --git a/web/compatibility.js b/web/compatibility.js index a21bf6a29..6d57b9200 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -237,7 +237,7 @@ if (typeof PDFJS === 'undefined') { 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; window.atob = function (input) { input = input.replace(/=+$/, ''); - if (input.length % 4 == 1) { + if (input.length % 4 === 1) { throw new Error('bad atob input'); } for ( @@ -293,7 +293,7 @@ if (typeof PDFJS === 'undefined') { var dataset = {}; for (var j = 0, jj = this.attributes.length; j < jj; j++) { var attribute = this.attributes[j]; - if (attribute.name.substring(0, 5) != 'data-') { + if (attribute.name.substring(0, 5) !== 'data-') { continue; } var key = attribute.name.substring(5).replace(/\-([a-z])/g, @@ -416,7 +416,7 @@ if (typeof PDFJS === 'undefined') { function isDisabled(node) { return node.disabled || (node.parentNode && isDisabled(node.parentNode)); } - if (navigator.userAgent.indexOf('Opera') != -1) { + if (navigator.userAgent.indexOf('Opera') !== -1) { // use browser detection since we cannot feature-check this bug document.addEventListener('click', ignoreIfTargetDisabled, true); }