mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
cleanup some code
This commit is contained in:
parent
e566494a87
commit
cb2048f163
14 changed files with 32 additions and 117 deletions
|
|
@ -18,9 +18,7 @@ export class AbstractModel {
|
|||
|
||||
regDisposables(value) {
|
||||
if (Array.isArray(value)) {
|
||||
value.forEach((item) => {
|
||||
this.disposables.push(item);
|
||||
});
|
||||
value.forEach(item => this.disposables.push(item));
|
||||
} else if (value) {
|
||||
this.disposables.push(value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue