MCPcopy Create free account
hub / github.com/angular/components / hasRowElement

Function hasRowElement

src/cdk-experimental/popover-edit/table-directives.ts:71–82  ·  view source on GitHub ↗
(nl: NodeList)

Source from the content-addressed store, hash-verified

69const MOUSE_MOVE_THROTTLE_TIME_MS = 10;
70
71function hasRowElement(nl: NodeList) {
72 for (let i = 0; i < nl.length; i++) {
73 const el = nl[i];
74 if (!(el instanceof HTMLElement)) {
75 continue;
76 }
77 if (el.matches(ROW_SELECTOR)) {
78 return true;
79 }
80 }
81 return false;
82}
83
84function isRowMutation(mutation: MutationRecord): boolean {
85 return hasRowElement(mutation.addedNodes) || hasRowElement(mutation.removedNodes);

Callers 1

isRowMutationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected