Skip to content

Commit 3ddd6c3

Browse files
committed
Update comments as requested by code review.
1 parent 3c40dd9 commit 3ddd6c3

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

ts/core/MmlTree/MmlNode.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ export abstract class AbstractMmlNode extends AbstractNode implements MmlNode {
351351
* @override
352352
*
353353
* @param {boolean} keepIds True to copy id attributes, false to skip them.
354+
* (May cause error in the future, since not part of the interface.)
355+
* @return {AbstractMmlNode} The copied node tree.
354356
*/
355357
public copy(keepIds: boolean = false): AbstractMmlNode {
356358
const node = this.factory.create(this.kind) as AbstractMmlNode;

ts/core/Tree/Node.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ export abstract class AbstractNode implements Node {
276276
const node = (this as AbstractNode).factory.create(this.kind) as AbstractNode;
277277
node.properties = {...this.properties};
278278
for (const child of this.childNodes || []) {
279-
if (child) node.appendChild(child.copy());
279+
if (child) {
280+
node.appendChild(child.copy());
281+
}
280282
}
281283
return node;
282284
}

ts/input/tex/cases/CasesConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {MmlMtable} from '../../../core/MmlTree/MmlNodes/mtable.js';
1111
import {EmpheqUtil} from '../empheq/EmpheqUtil.js';
1212

1313
/**
14-
* The StakItem for the numcases environment.
14+
* The StackItem for the numcases environment.
1515
*/
1616
export class CasesBeginItem extends BeginItem {
1717

ts/input/tex/empheq/EmpheqUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {EmpheqBeginItem} from './EmpheqConfiguration.js';
3535
export const EmpheqUtil = {
3636

3737
/**
38-
* Create the needed envonronment and process it by the give function.
38+
* Create the needed envinronment and process it by the give function.
3939
*
4040
* @param {TexParser} parser The active tex parser.
4141
* @param {string} env The environment to create.

0 commit comments

Comments
 (0)