From 1275183d6d1ba23e7f722f0d52e92bbac78bb100 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Mon, 22 Sep 2014 16:33:21 -0500 Subject: [PATCH] PDF.js version 1.0.676 --- bower.json | 2 +- build/pdf.combined.js | 8 ++++---- build/pdf.js | 4 ++-- build/pdf.worker.js | 8 ++++---- package.json | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bower.json b/bower.json index fcc034475..32c4f560b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.674", + "version": "1.0.676", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index c03f39ff3..cbe9481a2 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.674'; -PDFJS.build = 'cd5bd9f'; +PDFJS.version = '1.0.676'; +PDFJS.build = '9d87cbc'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -11202,7 +11202,7 @@ var PDFFunction = (function PDFFunctionClosure() { } length *= outputSize; - var array = []; + var array = new Array(length); var codeSize = 0; var codeBuf = 0; // 32 is a valid bps so shifting won't work @@ -11217,7 +11217,7 @@ var PDFFunction = (function PDFFunctionClosure() { codeSize += 8; } codeSize -= bps; - array.push((codeBuf >> codeSize) * sampleMul); + array[i] = (codeBuf >> codeSize) * sampleMul; codeBuf &= (1 << codeSize) - 1; } return array; diff --git a/build/pdf.js b/build/pdf.js index e40e6e88e..6dfd3dd70 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.674'; -PDFJS.build = 'cd5bd9f'; +PDFJS.version = '1.0.676'; +PDFJS.build = '9d87cbc'; (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 9382c3ea0..bee548424 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.674'; -PDFJS.build = 'cd5bd9f'; +PDFJS.version = '1.0.676'; +PDFJS.build = '9d87cbc'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -5219,7 +5219,7 @@ var PDFFunction = (function PDFFunctionClosure() { } length *= outputSize; - var array = []; + var array = new Array(length); var codeSize = 0; var codeBuf = 0; // 32 is a valid bps so shifting won't work @@ -5234,7 +5234,7 @@ var PDFFunction = (function PDFFunctionClosure() { codeSize += 8; } codeSize -= bps; - array.push((codeBuf >> codeSize) * sampleMul); + array[i] = (codeBuf >> codeSize) * sampleMul; codeBuf &= (1 << codeSize) - 1; } return array; diff --git a/package.json b/package.json index 0b4ea41eb..330874348 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.674", + "version": "1.0.676", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",