Skip to content

Commit

Permalink
fix: add TraversingQuery to ESL ns
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Apr 14, 2021
1 parent b544e07 commit d1b2af2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/esl-traversing-query/core/esl-traversing-query.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {ExportNs} from '../../esl-utils/environment/export-ns';
import {tuple, wrap, uniq} from '../../esl-utils/misc/array';
import {unwrapParenthesis} from '../../esl-utils/misc/format';
import {TraversingUtils} from '../../esl-utils/dom/traversing';
Expand Down Expand Up @@ -31,6 +32,7 @@ type CollectionProcessor = (els: Element[], sel: string) => Element[];
* @example "#id .class [attr]::parent" - find parent of element matching selector '#id .class [attr]' in document
* @example "::find(.row)::last::parent" - find parent of the last element matching selector '.row' from the base element subtree
*/
@ExportNs('TraversingQuery')
export class TraversingQuery {
private static ELEMENT_PROCESSORS: Record<string, ElementProcessor> = {
'::find': TraversingUtils.findAll,
Expand Down

0 comments on commit d1b2af2

Please sign in to comment.