mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Remove variable shadowing from the JavaScript files in the src/display/
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:
parent
3cebb430c2
commit
3539a17d2a
6 changed files with 44 additions and 44 deletions
|
@ -367,11 +367,11 @@ function compileType3Glyph(imgData) {
|
|||
c.scale(1 / width, -1 / height);
|
||||
c.translate(0, -height);
|
||||
c.beginPath();
|
||||
for (var i = 0, ii = outlines.length; i < ii; i++) {
|
||||
var o = outlines[i];
|
||||
for (let k = 0, kk = outlines.length; k < kk; k++) {
|
||||
var o = outlines[k];
|
||||
c.moveTo(o[0], o[1]);
|
||||
for (var j = 2, jj = o.length; j < jj; j += 2) {
|
||||
c.lineTo(o[j], o[j + 1]);
|
||||
for (let l = 2, ll = o.length; l < ll; l += 2) {
|
||||
c.lineTo(o[l], o[l + 1]);
|
||||
}
|
||||
}
|
||||
c.fill();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue