1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Merge pull request #776 from jviereck/jpegimage_cleanup

Don't create JpegImage object anymore - go functional style
This commit is contained in:
notmasteryet 2011-12-07 11:11:11 -08:00
commit cb592d6e51
4 changed files with 14 additions and 34 deletions

View file

@ -562,8 +562,8 @@ var PDFDoc = (function pdfDoc() {
switch (type) {
case 'JpegStream':
var IR = data[2];
new JpegImageLoader(id, IR, this.objs);
var imageData = data[2];
loadJpegStream(id, imageData, this.objs);
break;
case 'Font':
var name = data[2];