From 4d92a5025aed357728b73d3ed466d1f142bf667e Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:31:38 -0500 Subject: [PATCH] PDF.js version 1.0.608 --- bower.json | 2 +- build/pdf.combined.js | 15 ++++----------- build/pdf.js | 4 ++-- build/pdf.worker.js | 15 ++++----------- package.json | 2 +- 5 files changed, 12 insertions(+), 26 deletions(-) diff --git a/bower.json b/bower.json index 9155141ca..2d3e432ef 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.606", + "version": "1.0.608", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index dc52ef594..e74b3750b 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.606'; -PDFJS.build = 'c6c4583'; +PDFJS.version = '1.0.608'; +PDFJS.build = 'cbdaf85'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -6795,15 +6795,8 @@ var ChunkedStream = (function ChunkedStreamClosure() { if (pos >= this.end) { return -1; } - var byte = this.bytes[pos]; - if (byte === 0) { - // |byte| might be zero, because the corresponding chunk has not been - // loaded yet. In this case, this.ensureByte(pos) will throw an - // exception and nothing is returned. - this.ensureByte(pos); - } - this.pos++; - return byte; + this.ensureByte(pos); + return this.bytes[this.pos++]; }, getUint16: function ChunkedStream_getUint16() { diff --git a/build/pdf.js b/build/pdf.js index cd671fd77..d223b8a7f 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.606'; -PDFJS.build = 'c6c4583'; +PDFJS.version = '1.0.608'; +PDFJS.build = 'cbdaf85'; (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 87a4390de..427029b99 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.606'; -PDFJS.build = 'c6c4583'; +PDFJS.version = '1.0.608'; +PDFJS.build = 'cbdaf85'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -1938,15 +1938,8 @@ var ChunkedStream = (function ChunkedStreamClosure() { if (pos >= this.end) { return -1; } - var byte = this.bytes[pos]; - if (byte === 0) { - // |byte| might be zero, because the corresponding chunk has not been - // loaded yet. In this case, this.ensureByte(pos) will throw an - // exception and nothing is returned. - this.ensureByte(pos); - } - this.pos++; - return byte; + this.ensureByte(pos); + return this.bytes[this.pos++]; }, getUint16: function ChunkedStream_getUint16() { diff --git a/package.json b/package.json index fc7c72311..bee039d72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.606", + "version": "1.0.608", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",