MCPcopy Index your code
hub / github.com/darkreader/darkreader / clear

Method clear

src/inject/dynamic-theme/variables.ts:48–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 private onRootVariableDefined: () => void;
47
48 clear(): void {
49 this.varTypes.clear();
50 this.rulesQueue.clear();
51 this.inlineStyleQueue.splice(0);
52 this.definedVars.clear();
53 this.varRefs.clear();
54 this.unknownColorVars.clear();
55 this.unknownBgVars.clear();
56 this.undefinedVars.clear();
57 this.initialVarTypes.clear();
58 this.changedTypeVars.clear();
59 this.typeChangeSubscriptions.clear();
60 this.unstableVarValues.clear();
61 this.varFilterTypes.clear();
62 this.notifyingVarFilterTypes.clear();
63 }
64
65 private isVarType(varName: string, typeNum: number) {
66 return (

Callers 15

clearColorCacheFunction · 0.45
writeImageDetailsQueueFunction · 0.45
onReadyStateChangeFunction · 0.45
checkImageSelectorsFunction · 0.45
cleanModificationCacheFunction · 0.45
removeDynamicThemeFunction · 0.45
cleanDynamicThemeCacheFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected