Don't create Image object in JpegStream

This commit is contained in:
Julian Viereck 2011-10-08 22:36:44 +02:00
parent 90e2546ea3
commit be73cb4f42

7
pdf.js
View File

@ -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);
}