MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getModalInstance

Function getModalInstance

static/bootstrap-utils.ts:135–140  ·  view source on GitHub ↗
(elementOrSelector: string | HTMLElement | JQuery)

Source from the content-addressed store, hash-verified

133 * @returns Existing modal instance or null if not found
134 */
135export function getModalInstance(elementOrSelector: string | HTMLElement | JQuery): Modal | null {
136 const element = getElement(elementOrSelector);
137 if (!element) return null;
138
139 return Modal.getInstance(element);
140}
141
142/**
143 * Show a modal

Callers

nothing calls this directly

Calls 1

getElementFunction · 0.85

Tested by

no test coverage detected