Style nits.

This commit is contained in:
Brendan Dahl 2011-12-12 09:26:24 -08:00
parent 0d370fd206
commit 176452c988
5 changed files with 6 additions and 6 deletions

View 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];
}

View 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;

View 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();

View File

@ -25,7 +25,7 @@ Message.prototype = {
this.messager = messager;
this.id = id;
}
}
};
function MessageHandler(name, comObj) {
this.name = name;