Fix some features not being configurable via features (#10276)

This commit is contained in:
Michael Telatynski
2023-03-03 13:31:51 +00:00
committed by GitHub
parent 6746ce2da3
commit ad8d27d2b2
12 changed files with 329 additions and 61 deletions

View File

@@ -39,7 +39,7 @@ export class WatchManager {
public unwatchSetting(cb: CallbackFn): void {
this.watchers.forEach((map) => {
map.forEach((callbacks) => {
let idx;
let idx: number;
while ((idx = callbacks.indexOf(cb)) !== -1) {
callbacks.splice(idx, 1);
}