Skip to content

Commit 618be9b

Browse files
committed
Fix last no-shadow warning
1 parent 3604f63 commit 618be9b

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

modules/base/latex.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -314,16 +314,16 @@ function remapSymbolTtfCode(code) {
314314
case 81: letter = 0o44; break; // #exists
315315
}
316316
}
317-
const code = symbol.charCodeAt(0);
318-
if (code > 0x80)
319-
symbolsPdfMap[code] = letter;
317+
const scode = symbol.charCodeAt(0);
318+
if (scode > 0x80)
319+
symbolsPdfMap[scode] = letter;
320320
}
321321
if (++cnt > 54 + 82) break;
322322
}
323323
for (let k = 0; k < symbolsMap.length; ++k) {
324-
const code = symbolsMap[k];
325-
if (code)
326-
symbolsPdfMap[code] = k + 33;
324+
const scode2 = symbolsMap[k];
325+
if (scode2)
326+
symbolsPdfMap[scode2] = k + 33;
327327
}
328328
}
329329
return symbolsPdfMap[code] ?? code;
@@ -1088,9 +1088,9 @@ async function loadMathjax() {
10881088
return _loadJSDOM().then(handle => {
10891089
JSDOM = handle.JSDOM;
10901090
return import('mathjax');
1091-
}).then(mj => {
1091+
}).then(mj0 => {
10921092
// return Promise with mathjax loading
1093-
mj.init({
1093+
mj0.init({
10941094
loader: {
10951095
load: ['input/tex', 'output/svg', '[tex]/color', '[tex]/upgreek', '[tex]/mathtools', '[tex]/physics']
10961096
},

modules/core.mjs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const version_id = 'dev',
44

55
/** @summary version date
66
* @desc Release date in format day/month/year like '14/04/2022' */
7-
version_date = '26/02/2025',
7+
version_date = '27/02/2025',
88

99
/** @summary version id and date
1010
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -632,8 +632,8 @@ function parse(json) {
632632
const buf = atob_func(value.b);
633633
if (arr.buffer) {
634634
const dv = new DataView(arr.buffer, value.o || 0),
635-
len = Math.min(buf.length, dv.byteLength);
636-
for (let k = 0; k < len; ++k)
635+
blen = Math.min(buf.length, dv.byteLength);
636+
for (let k = 0; k < blen; ++k)
637637
dv.setUint8(k, buf.charCodeAt(k));
638638
} else
639639
throw new Error('base64 coding supported only for native arrays with binary data');
@@ -1594,12 +1594,12 @@ function getMethods(typename, obj) {
15941594
this.arr = [];
15951595
this.opt = [];
15961596
};
1597-
m.Add = function(obj, opt) {
1598-
this.arr.push(obj);
1597+
m.Add = function(elem, opt) {
1598+
this.arr.push(elem);
15991599
this.opt.push(isStr(opt) ? opt : '');
16001600
};
1601-
m.AddFirst = function(obj, opt) {
1602-
this.arr.unshift(obj);
1601+
m.AddFirst = function(elem, opt) {
1602+
this.arr.unshift(elem);
16031603
this.opt.unshift(isStr(opt) ? opt : '');
16041604
};
16051605
m.RemoveAt = function(indx) {
@@ -1624,11 +1624,11 @@ function getMethods(typename, obj) {
16241624
}
16251625

16261626
if ((typename.indexOf(clTF1) === 0) || (typename === clTF12) || (typename === clTF2)) {
1627-
m.addFormula = function(obj) {
1628-
if (!obj) return;
1627+
m.addFormula = function(formula) {
1628+
if (!formula) return;
16291629
if (this.formulas === undefined)
16301630
this.formulas = [];
1631-
this.formulas.push(obj);
1631+
this.formulas.push(formula);
16321632
};
16331633
m.GetParName = function(n) {
16341634
if (this.fParams?.fParNames)

0 commit comments

Comments
 (0)