Fix (most) errors reported by the no-multi-spaces
ESLint rule
http://eslint.org/docs/rules/no-multi-spaces
This commit is contained in:
parent
328e7397ea
commit
3820946301
@ -197,7 +197,7 @@ function createBundle(defines) {
|
||||
case 'mainfile':
|
||||
// 'buildnumber' shall create BUILD_DIR for us
|
||||
tmpFile = BUILD_DIR + '~' + mainOutputName + '.tmp';
|
||||
bundle('src/pdf.js', tmpFile, 'src/', mainFiles, mainAMDName,
|
||||
bundle('src/pdf.js', tmpFile, 'src/', mainFiles, mainAMDName,
|
||||
defines, true, versionJSON);
|
||||
this.push(new gutil.File({
|
||||
cwd: '',
|
||||
|
@ -437,7 +437,7 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {
|
||||
x = xb; y = yb;
|
||||
if (Math.abs(x - x0) > Math.abs(y - y0)) {
|
||||
x += stack.shift();
|
||||
} else {
|
||||
} else {
|
||||
y += stack.shift();
|
||||
}
|
||||
bezierCurveTo(xa, ya, xb, yb, x, y);
|
||||
|
@ -977,7 +977,7 @@ var Jbig2Image = (function Jbig2ImageClosure() {
|
||||
var combinationOperator = pageInfo.combinationOperatorOverride ?
|
||||
regionInfo.combinationOperator : pageInfo.combinationOperator;
|
||||
var buffer = this.buffer;
|
||||
var mask0 = 128 >> (regionInfo.x & 7);
|
||||
var mask0 = 128 >> (regionInfo.x & 7);
|
||||
var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
|
||||
var i, j, mask, offset;
|
||||
switch (combinationOperator) {
|
||||
|
@ -616,7 +616,7 @@ var JpegImage = (function JpegImageClosure() {
|
||||
component = frame.components[i];
|
||||
var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
|
||||
component.h / frame.maxH);
|
||||
var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
|
||||
var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
|
||||
component.v / frame.maxV);
|
||||
var blocksPerLineForMcu = mcusPerLine * component.h;
|
||||
var blocksPerColumnForMcu = mcusPerColumn * component.v;
|
||||
|
@ -1484,7 +1484,7 @@ var JpxImage = (function JpxImageClosure() {
|
||||
var qcdOrQcc = (context.currentTile.QCC[c] !== undefined ?
|
||||
context.currentTile.QCC[c] : context.currentTile.QCD);
|
||||
component.quantizationParameters = qcdOrQcc;
|
||||
var codOrCoc = (context.currentTile.COC[c] !== undefined ?
|
||||
var codOrCoc = (context.currentTile.COC[c] !== undefined ?
|
||||
context.currentTile.COC[c] : context.currentTile.COD);
|
||||
component.codingStyleParameters = codOrCoc;
|
||||
}
|
||||
@ -1552,7 +1552,7 @@ var JpxImage = (function JpxImageClosure() {
|
||||
})();
|
||||
|
||||
var InclusionTree = (function InclusionTreeClosure() {
|
||||
function InclusionTree(width, height, defaultValue) {
|
||||
function InclusionTree(width, height, defaultValue) {
|
||||
var levelsLength = log2(Math.max(width, height)) + 1;
|
||||
this.levels = [];
|
||||
for (var i = 0; i < levelsLength; i++) {
|
||||
|
@ -1314,7 +1314,7 @@ var PDFWorker = (function PDFWorkerClosure() {
|
||||
}
|
||||
try {
|
||||
sendTest();
|
||||
} catch (e) {
|
||||
} catch (e) {
|
||||
// We need fallback to a faked worker.
|
||||
this._setupFakeWorker();
|
||||
}
|
||||
|
@ -654,7 +654,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
||||
}
|
||||
if (sourceCtx.setLineDash !== undefined) {
|
||||
destCtx.setLineDash(sourceCtx.getLineDash());
|
||||
destCtx.lineDashOffset = sourceCtx.lineDashOffset;
|
||||
destCtx.lineDashOffset = sourceCtx.lineDashOffset;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1862,7 +1862,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
||||
var cacheId = 'groupAt' + this.groupLevel;
|
||||
if (group.smask) {
|
||||
// Using two cache entries is case if masks are used one after another.
|
||||
cacheId += '_smask_' + ((this.smaskCounter++) % 2);
|
||||
cacheId += '_smask_' + ((this.smaskCounter++) % 2);
|
||||
}
|
||||
var scratchCanvas = this.cachedCanvases.getCanvas(
|
||||
cacheId, drawnWidth, drawnHeight, true);
|
||||
|
@ -165,12 +165,12 @@ var WebGLUtils = (function WebGLUtilsClosure() {
|
||||
var texCoordBuffer = gl.createBuffer();
|
||||
gl.bindBuffer(gl.ARRAY_BUFFER, texCoordBuffer);
|
||||
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([
|
||||
0.0, 0.0,
|
||||
1.0, 0.0,
|
||||
0.0, 1.0,
|
||||
0.0, 1.0,
|
||||
1.0, 0.0,
|
||||
1.0, 1.0]), gl.STATIC_DRAW);
|
||||
0.0, 0.0,
|
||||
1.0, 0.0,
|
||||
0.0, 1.0,
|
||||
0.0, 1.0,
|
||||
1.0, 0.0,
|
||||
1.0, 1.0]), gl.STATIC_DRAW);
|
||||
gl.enableVertexAttribArray(texCoordLocation);
|
||||
gl.vertexAttribPointer(texCoordLocation, 2, gl.FLOAT, false, 0, 0);
|
||||
|
||||
|
@ -288,7 +288,7 @@ var Driver = (function DriverClosure() {
|
||||
var self = this;
|
||||
window.onerror = function(message, source, line, column, error) {
|
||||
self._info('Error: ' + message + ' Script: ' + source + ' Line: ' +
|
||||
line + ' Column: ' + column + ' StackTrace: ' + error);
|
||||
line + ' Column: ' + column + ' StackTrace: ' + error);
|
||||
};
|
||||
this._info('User agent: ' + navigator.userAgent);
|
||||
this._log('Harness thinks this browser is "' + this.browser +
|
||||
|
@ -260,7 +260,7 @@ function approximateFraction(x) {
|
||||
var limit = 8;
|
||||
if (xinv > limit) {
|
||||
return [1, limit];
|
||||
} else if (Math.floor(xinv) === xinv) {
|
||||
} else if (Math.floor(xinv) === xinv) {
|
||||
return [1, xinv];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user