Cleanup knockout subscribables

This commit is contained in:
the-djmaze 2022-02-17 09:36:29 +01:00
parent 5748dea4bc
commit b2a492bdab
27 changed files with 73 additions and 75 deletions

View file

@ -41,17 +41,17 @@ export class AbstractInput {
(size + ' settings-saved-trigger-input ' + classForTrigger()).trim()
);
this.disposable = [
this.disposables = [
this.trigger.subscribe(setTriggerState, this),
this.className
];
} else {
this.className = size;
this.disposable = [];
this.disposables = [];
}
}
dispose() {
this.disposable.forEach(dispose);
this.disposables.forEach(dispose);
}
}