1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Remove variable shadowing from the JavaScript files in the src/core/ folder

*This is part of a series of patches that will try to split PR 11566 into smaller chunks, to make reviewing more feasible.*

Once all the code has been fixed, we'll be able to eventually enable the ESLint no-shadow rule; see https://eslint.org/docs/rules/no-shadow
This commit is contained in:
Jonas Jenwald 2020-03-23 17:04:47 +01:00
parent b86df97725
commit 216cbca16c
11 changed files with 135 additions and 140 deletions

View file

@ -736,7 +736,7 @@ var JpxImage = (function JpxImageClosure() {
var l, r, c, p;
var maxDecompositionLevelsCount = 0;
for (c = 0; c < componentsCount; c++) {
var component = tile.components[c];
const component = tile.components[c];
maxDecompositionLevelsCount = Math.max(
maxDecompositionLevelsCount,
component.codingStyleParameters.decompositionLevelsCount
@ -768,7 +768,7 @@ var JpxImage = (function JpxImageClosure() {
for (; r <= maxDecompositionLevelsCount; r++) {
for (; p < maxNumPrecinctsInLevel[r]; p++) {
for (; c < componentsCount; c++) {
var component = tile.components[c];
const component = tile.components[c];
if (r > component.codingStyleParameters.decompositionLevelsCount) {
continue;
}