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

Method reset

src/actions/Video.ts:87–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 }
86
87 static override async reset(): Promise<void> {
88 // Properly clean up all video elements before removing
89 this.engine.element().find('[data-video]').each((element: HTMLElement) => {
90 Video.cleanupVideoElement(element as HTMLVideoElement);
91 });
92 this.engine.element().find('[data-video]').remove();
93
94 this.engine.history({
95 video: [] // string[]
96 });
97
98 this.engine.state({
99 videos: [] // string[]
100 });
101 }
102
103 static override matchString([show, type]: string[]): boolean {
104 return show === 'show' && type === 'video';

Callers

nothing calls this directly

Calls 6

cleanupVideoElementMethod · 0.80
historyMethod · 0.80
stateMethod · 0.80
eachMethod · 0.65
removeMethod · 0.65
elementMethod · 0.45

Tested by

no test coverage detected