MCPcopy Create free account
hub / github.com/Fredkiss3/gh-next / navigate

Method navigate

scripts/github-query-builder-element.ts:128–140  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

126 // We need this in code view to intercept line hash navigations (i.e. #L123)
127 // within the same file.
128 navigate(event: Event) {
129 const url = (event?.target as HTMLElement)
130 ?.closest("a")
131 ?.getAttribute("href");
132 if (url) {
133 this.dispatchEvent(
134 new CustomEvent("query-builder:navigate", {
135 bubbles: true,
136 detail: { url }
137 })
138 );
139 }
140 }
141
142 get closed() {
143 return this.overlay && this.overlay.hasAttribute("hidden");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected