* Cleanup
()
| 994 | * Cleanup |
| 995 | */ |
| 996 | destroy(): void { |
| 997 | // Clear all debounce timers |
| 998 | this.debouncedHandlers.forEach((timeoutId) => { |
| 999 | window.clearTimeout(timeoutId); |
| 1000 | }); |
| 1001 | this.debouncedHandlers.clear(); |
| 1002 | |
| 1003 | // Unregister all event listeners |
| 1004 | this.eventListeners.forEach((ref) => { |
| 1005 | this.app.metadataCache.offref(ref); |
| 1006 | }); |
| 1007 | this.eventListeners = []; |
| 1008 | |
| 1009 | this.clearFilterIndexes(); |
| 1010 | this.filterIndexesBuilt = false; |
| 1011 | this.initialized = false; |
| 1012 | } |
| 1013 | |
| 1014 | /** |
| 1015 | * Delegate dependency methods to DependencyCache (will be set by main.ts) |
nothing calls this directly
no test coverage detected