MCPcopy Create free account
hub / github.com/anomalyco/opencode / disposeCopyButton

Function disposeCopyButton

packages/session-ui/src/components/markdown.tsx:159–162  ·  view source on GitHub ↗
(host: HTMLElement)

Source from the content-addressed store, hash-verified

157}
158
159function disposeCopyButton(host: HTMLElement) {
160 copyButtonState.get(host)?.dispose()
161 copyButtonState.delete(host)
162}
163
164function disposeCopyButtons(root: Element) {
165 const hosts = [

Callers 1

ensureCodeWrapperFunction · 0.85

Calls 3

getMethod · 0.65
disposeMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected