Skip to content

Commit

Permalink
Fix typos spotted by Volker.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Jun 16, 2020
1 parent bd9d477 commit b94f49e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ts/core/DOMAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export interface DOMAdaptor<N, T, D> {
getElements(nodes: (string | N | N[])[], document: D): N[];

/**
* Determine if a container node contains a given node in somewhere in its DOM tree
* Determine if a container node contains a given node is somewhere in its DOM tree
*
* @param {N} container The container to search
* @param {N|T} node The node to look for
Expand Down
3 changes: 2 additions & 1 deletion ts/core/MathDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,8 @@ export abstract class AbstractMathDocument<N, T, D> implements MathDocument<N, T
const adaptor = this.adaptor;
const items = [] as MathItem<N, T, D>[];
const containers = adaptor.getElements(elements, this.document);
ITEMS: for (const item of this.math) {
ITEMS:
for (const item of this.math) {
for (const container of containers) {
if (item.start.node && adaptor.contains(container, item.start.node)) {
items.push(item);
Expand Down

0 comments on commit b94f49e

Please sign in to comment.