MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / bind

Method bind

src/actions/Message.ts:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 };
13
14 static override async bind(): Promise<void> {
15 // The close action removes the active class from the element it
16 // points to.
17 this.engine.on('click', '[data-component="message-modal"] [data-action="close"]', () => {
18 Message.blocking = false;
19 this.engine.element().find('[data-component="message-modal"]').remove();
20 this.engine.proceed({ userInitiated: true, skip: false, autoPlay: false });
21 });
22 }
23
24 static override async shouldProceed(_options?: { userInitiated?: boolean; skip?: boolean; autoPlay?: boolean; }): Promise<void> {
25 if (Message.blocking) {

Callers

nothing calls this directly

Calls 4

proceedMethod · 0.80
onMethod · 0.65
removeMethod · 0.65
elementMethod · 0.45

Tested by

no test coverage detected