Selaa lähdekoodia

PDF.js version 1.0.608

Yury Delendik 10 vuotta sitten
vanhempi
sitoutus
4d92a5025a
5 muutettua tiedostoa jossa 12 lisäystä ja 26 poistoa
  1. 1 1
      bower.json
  2. 4 11
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 4 11
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.606",
+  "version": "1.0.608",
   "keywords": [
     "Mozilla",
     "pdf",

+ 4 - 11
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() {

+ 2 - 2
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

+ 4 - 11
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() {

+ 1 - 1
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",