From f8f58da71e49a24f737ceb68f26932a9e9bc0456 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:29:35 -0500 Subject: [PATCH] PDF.js version 1.0.482 --- bower.json | 2 +- build/pdf.combined.js | 12 +++++++++--- build/pdf.js | 4 ++-- build/pdf.worker.js | 12 +++++++++--- package.json | 2 +- 5 files changed, 22 insertions(+), 10 deletions(-) diff --git a/bower.json b/bower.json index ec9718221..a0ee91d90 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.480", + "version": "1.0.482", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 836b56724..04d716cf0 100644 --- a/build/pdf.combined.js +++ b/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; } }; diff --git a/build/pdf.js b/build/pdf.js index b408447cb..d13cd6087 100644 --- a/build/pdf.js +++ b/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 diff --git a/build/pdf.worker.js b/build/pdf.worker.js index d4ef8684a..b64ae069b 100644 --- a/build/pdf.worker.js +++ b/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; } }; diff --git a/package.json b/package.json index 24daa1599..2a6eafd3a 100644 --- a/package.json +++ b/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",