MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isInTree

Function isInTree

src/ink/focus.ts:153–160  ·  view source on GitHub ↗
(node: DOMElement, root: DOMElement)

Source from the content-addressed store, hash-verified

151}
152
153function isInTree(node: DOMElement, root: DOMElement): boolean {
154 let current: DOMElement | undefined = node
155 while (current) {
156 if (current === root) return true
157 current = current.parentNode
158 }
159 return false
160}
161
162/**
163 * Walk up to root and return it. The root is the node that holds

Callers 1

handleNodeRemovedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected