]> git.parisson.com Git - pdf.js.git/commitdiff
Rename JpegStreamIr to just JpegImage since it isn't
author= <=>
Thu, 20 Oct 2011 19:18:24 +0000 (12:18 -0700)
committer= <=>
Thu, 20 Oct 2011 19:18:24 +0000 (12:18 -0700)
an IR.

pdf.js

diff --git a/pdf.js b/pdf.js
index 4161ec4933b879cac8fbe16560f3889a08733aa5..93ff2b2f0c3e55bf9b392ed58529d07677955209 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -897,8 +897,8 @@ var PredictorStream = (function predictorStream() {
   return constructor;
 })();
 
-var JpegStreamIR = (function() {
-  function JpegStreamIR(objId, IR, objs) {
+var JpegImage = (function() {
+  function JpegImage(objId, IR, objs) {
     var src = 'data:image/jpeg;base64,' + window.btoa(IR);
 
     // create DOM image
@@ -915,13 +915,13 @@ var JpegStreamIR = (function() {
     this.domImage = img;
   }
 
-  JpegStreamIR.prototype = {
+  JpegImage.prototype = {
     getImage: function() {
       return this.domImage;
     }
   };
 
-  return JpegStreamIR;
+  return JpegImage;
 })();
 
 // A JpegStream can't be read directly. We use the platform to render
@@ -4045,7 +4045,7 @@ var PDFDoc = (function() {
       switch (objType) {
         case 'JpegStream':
           var IR = data[2];
-          new JpegStreamIR(objId, IR, this.objs);
+          new JpegImage(objId, IR, this.objs);
           console.log('got image');
         break;
         case 'Font':