From: Julian Viereck Date: Sat, 8 Oct 2011 20:36:44 +0000 (+0200) Subject: Don't create Image object in JpegStream X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=be73cb4f422e411bde3b8ae58de367331797a972;p=pdf.js.git Don't create Image object in JpegStream --- diff --git a/pdf.js b/pdf.js index 99a4008..2e4edef 100644 --- a/pdf.js +++ b/pdf.js @@ -963,13 +963,6 @@ var JpegStream = (function jpegStream() { if (isAdobeImage(bytes)) bytes = fixAdobeImage(bytes); - // create DOM image - var img = new Image(); - img.onload = (function jpegStreamOnload() { - this.loaded = true; - if (this.onLoad) - this.onLoad(); - }).bind(this); this.src = bytesToString(bytes); }