MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / onunload

Method onunload

src/code_embed.ts:210–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208 }
209
210 onunload() {
211 if (this.themeEventRef) {
212 this.plugin.app.workspace.offref(this.themeEventRef);
213 this.themeEventRef = null;
214 }
215 if (this.editorView) {
216 this.editorView.destroy();
217 }
218 }
219}
220
221type PendingEmbedRequest = {

Callers 2

disposeCodeEmbedFunction · 0.45
renderCodeEmbedFunction · 0.45

Calls 1

destroyMethod · 0.80

Tested by

no test coverage detected