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 + 1] = data[i + 1];
buf[j + 2] = data[i + 2]; 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++) { for (var i = 0, j = 0; i < rgbaLength; i += 4, j++) {
buf[j] = data[i]; buf[j] = data[i];
} }

View File

@ -179,7 +179,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
return loadedName; return loadedName;
} }
function buildPaintImageXObject(image, inline) { function buildPaintImageXObject(image, inline) {
var dict = image.dict; var dict = image.dict;
var w = dict.get('Width', 'W'); var w = dict.get('Width', 'W');
var h = dict.get('Height', 'H'); var h = dict.get('Height', 'H');

View File

@ -13,7 +13,7 @@ var PDFImage = (function PDFImageClosure() {
// For natively supported jpegs send them to the main thread for decoding. // For natively supported jpegs send them to the main thread for decoding.
var dict = image.dict; var dict = image.dict;
var colorSpace = dict.get('ColorSpace', 'CS'); var colorSpace = dict.get('ColorSpace', 'CS');
colorSpace = ColorSpace.parse(colorSpace, xref, res); colorSpace = ColorSpace.parse(colorSpace, xref, res);
var numComps = colorSpace.numComps; var numComps = colorSpace.numComps;
handler.send('jpeg_decode', [image.getIR(), numComps], function(message) { handler.send('jpeg_decode', [image.getIR(), numComps], function(message) {
var data = message.data; 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 * Builds a promise that is resolved when all the passed in promises are
* resolved. * resolved.
* @param Array promises * @param {Promise[]} promises Array of promises to wait for.
* @return Promise * @return {Promise} New dependant promise.
*/ */
Promise.all = function(promises) { Promise.all = function(promises) {
var deferred = new Promise(); var deferred = new Promise();

View File

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