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

Method didApply

src/actions/Clear.ts:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 }
22
23 override async didApply(): Promise<ActionApplyResult> {
24 const textBox = this.engine.element().find('[data-component="text-box"]').get(0) as any;
25
26 this.engine.history('clear').push(textBox.props.mode);
27
28 return { advance: true };
29 }
30
31 override async willRevert(): Promise<void> {
32 if (this.engine.history('clear').length > 0) {

Callers

nothing calls this directly

Calls 3

historyMethod · 0.80
getMethod · 0.65
elementMethod · 0.45

Tested by

no test coverage detected