]> git.parisson.com Git - pdf.js.git/commitdiff
Style nits.
authorBrendan Dahl <brendan.dahl@gmail.com>
Mon, 12 Dec 2011 17:26:24 +0000 (09:26 -0800)
committerBrendan Dahl <brendan.dahl@gmail.com>
Mon, 12 Dec 2011 17:26:24 +0000 (09:26 -0800)
src/core.js
src/evaluator.js
src/image.js
src/util.js
src/worker.js

index 4dd7a90b83aa8e9373f8680c64ceede8481d19ef..79b7a12ca2d8466546164a7645e601d0d52906a3 100644 (file)
@@ -647,7 +647,7 @@ var PDFDoc = (function PDFDocClosure() {
               buf[j + 1] = data[i + 1];
               buf[j + 2] = data[i + 2];
             }
-          } else if(components == 1) {
+          } else if (components == 1) {
             for (var i = 0, j = 0; i < rgbaLength; i += 4, j++) {
               buf[j] = data[i];
             }
index 1a70b35c8589c0444e8c7e3955564bcc399753e7..edef57f91780c67becab0c075fa03f53c42249f8 100644 (file)
@@ -179,7 +179,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
         return loadedName;
       }
 
-      function buildPaintImageXObject(image, inline) {        
+      function buildPaintImageXObject(image, inline) {
         var dict = image.dict;
         var w = dict.get('Width', 'W');
         var h = dict.get('Height', 'H');
index 030c209526a093488e684cbbf80fb4d8db609be4..38377b4f7b5ee2cde1e65c6311f85a050bf269d4 100644 (file)
@@ -13,7 +13,7 @@ var PDFImage = (function PDFImageClosure() {
       // For natively supported jpegs send them to the main thread for decoding.
       var dict = image.dict;
       var colorSpace = dict.get('ColorSpace', 'CS');
-      colorSpace =  ColorSpace.parse(colorSpace, xref, res);
+      colorSpace = ColorSpace.parse(colorSpace, xref, res);
       var numComps = colorSpace.numComps;
       handler.send('jpeg_decode', [image.getIR(), numComps], function(message) {
         var data = message.data;
index 8a775fd94f1dc2b4a350b555406c28b67f16fdc9..57dbca4bb97a109c67e45a9a731c07f38877bf0b 100644 (file)
@@ -220,8 +220,8 @@ var Promise = (function PromiseClosure() {
   /**
    * Builds a promise that is resolved when all the passed in promises are
    * resolved.
-   * @param Array promises
-   * @return Promise
+   * @param {Promise[]} promises Array of promises to wait for.
+   * @return {Promise} New dependant promise.
    */
   Promise.all = function(promises) {
     var deferred = new Promise();
index d1c8026d4429a03dc6fe556f66a322de3c72da0e..dfd6d99696e0f71d5a1e85647ab0601960564c01 100644 (file)
@@ -25,7 +25,7 @@ Message.prototype = {
     this.messager = messager;
     this.id = id;
   }
-}
+};
 
 function MessageHandler(name, comObj) {
   this.name = name;