File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {MmlMtable} from '../../../core/MmlTree/MmlNodes/mtable.js';
1111import { EmpheqUtil } from '../empheq/EmpheqUtil.js' ;
1212
1313/**
14- * The StakItem for the numcases environment.
14+ * The StackItem for the numcases environment.
1515 */
1616export class CasesBeginItem extends BeginItem {
1717
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import {EmpheqBeginItem} from './EmpheqConfiguration.js';
3535export 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.
You can’t perform that action at this time.
0 commit comments