MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / clearAllTaskElements

Method clearAllTaskElements

src/bases/TaskListView.ts:2197–2213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2195 }
2196
2197 private clearAllTaskElements(): void {
2198 if (this.useVirtualScrolling) {
2199 this.destroyVirtualScroller();
2200 this.useVirtualScrolling = false;
2201 }
2202 this.itemsContainer?.empty();
2203 this.currentTaskElements.forEach((el) => el.remove());
2204 this.currentTaskElements.clear();
2205 this.lastFlatPaths = [];
2206 this.lastTaskSignatures.clear();
2207 this.taskInfoCache.clear();
2208 this.clearClickTimeouts();
2209 this.taskGroupKeys.clear();
2210 this.sortScopeTaskPaths.clear();
2211 this.expandedRelationshipTaskPaths.clear();
2212 this.expandedRelationshipTaskOrder.clear();
2213 }
2214
2215 private getCardOptions(targetDate: Date): TaskCardOptions {
2216 return this.buildTaskCardOptions({

Callers 4

renderMethod · 0.95
renderFlatMethod · 0.95
renderGroupedMethod · 0.95

Calls 3

clearClickTimeoutsMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected