From d54c2d37851d5fa2fcf5cfc9d878c91dc08b8dd4 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:32:29 -0500 Subject: [PATCH] PDF.js version 1.0.635 --- 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, 13 insertions(+), 9 deletions(-) diff --git a/bower.json b/bower.json index 397e13f04..8a47da6d6 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.633", + "version": "1.0.635", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 769dd77d6..1b89af47d 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.633'; -PDFJS.build = '4ce1b1e'; +PDFJS.version = '1.0.635'; +PDFJS.build = '5e18614'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.js b/build/pdf.js index 6059d439b..7cf50c53e 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.633'; -PDFJS.build = '4ce1b1e'; +PDFJS.version = '1.0.635'; +PDFJS.build = '5e18614'; (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 7899e5db5..ed29f483b 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.633'; -PDFJS.build = '4ce1b1e'; +PDFJS.version = '1.0.635'; +PDFJS.build = '5e18614'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index f28c2c706..71ac724d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.633", + "version": "1.0.635", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla", diff --git a/web/compatibility.js b/web/compatibility.js index 6d57b9200..2c7776610 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -171,7 +171,11 @@ if (typeof PDFJS === 'undefined') { if (typeof VBArray !== 'undefined') { Object.defineProperty(xhrPrototype, 'response', { get: function xmlHttpRequestResponseGet() { - return new Uint8Array(new VBArray(this.responseBody).toArray()); + if (this.responseType === 'arraybuffer') { + return new Uint8Array(new VBArray(this.responseBody).toArray()); + } else { + return this.responseText; + } } }); return;