* Cleanup
()
| 737 | * Cleanup |
| 738 | */ |
| 739 | destroy(): void { |
| 740 | // Unregister all event listeners |
| 741 | this.eventListeners.forEach((ref) => { |
| 742 | this.app.metadataCache.offref(ref); |
| 743 | }); |
| 744 | this.eventListeners = []; |
| 745 | |
| 746 | // Clear indexes |
| 747 | this.clearIndexes(); |
| 748 | |
| 749 | this.initialized = false; |
| 750 | this.indexesBuilt = false; |
| 751 | } |
| 752 | } |
nothing calls this directly
no test coverage detected