Bläddra i källkod

PDF.js version 1.0.482

Yury Delendik 10 år sedan
förälder
incheckning
f8f58da71e
5 ändrade filer med 22 tillägg och 10 borttagningar
  1. 1 1
      bower.json
  2. 9 3
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 9 3
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 9 - 3
build/pdf.combined.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.480';
-PDFJS.build = '2642583';
+PDFJS.version = '1.0.482';
+PDFJS.build = '2aea7d7';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -8087,7 +8087,13 @@ var Ref = (function RefClosure() {
 
   Ref.prototype = {
     toString: function Ref_toString() {
-      return 'R' + this.num + '.' + this.gen;
+      // This function is hot, so we make the string as compact as possible.
+      // |this.gen| is almost always zero, so we treat that case specially.
+      var str = this.num + 'R';
+      if (this.gen !== 0) {
+        str += this.gen;
+      }
+      return str;
     }
   };
 

+ 2 - 2
build/pdf.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.480';
-PDFJS.build = '2642583';
+PDFJS.version = '1.0.482';
+PDFJS.build = '2aea7d7';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 9 - 3
build/pdf.worker.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.480';
-PDFJS.build = '2642583';
+PDFJS.version = '1.0.482';
+PDFJS.build = '2aea7d7';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -3233,7 +3233,13 @@ var Ref = (function RefClosure() {
 
   Ref.prototype = {
     toString: function Ref_toString() {
-      return 'R' + this.num + '.' + this.gen;
+      // This function is hot, so we make the string as compact as possible.
+      // |this.gen| is almost always zero, so we treat that case specially.
+      var str = this.num + 'R';
+      if (this.gen !== 0) {
+        str += this.gen;
+      }
+      return str;
     }
   };
 

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.480",
+  "version": "1.0.482",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [
     "Mozilla",