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

Method constructor

static/widgets/alert.ts:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 prefixMessage = '';
35
36 constructor() {
37 const yesNoModal = $('#yes-no');
38 yesNoModal.find('button.yes').on('click', () => {
39 this.yesHandler?.();
40 });
41 yesNoModal.find('button.no').on('click', () => {
42 this.noHandler?.();
43 });
44 }
45
46 private toggleEventListener(element: JQuery, eventName: string, callback: (event: JQuery.Event) => void): void {
47 element.on(eventName, (event: JQuery.Event) => {

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
onMethod · 0.45

Tested by

no test coverage detected