mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
prettier --write
This commit is contained in:
parent
450528ff00
commit
8a0be3212d
164 changed files with 7053 additions and 9008 deletions
|
|
@ -1,33 +1,27 @@
|
|||
import { isArray, disposeObject } from 'Common/Utils';
|
||||
|
||||
import {isArray, disposeObject} from 'Common/Utils';
|
||||
|
||||
export class AbstractModel
|
||||
{
|
||||
export class AbstractModel {
|
||||
sModelName = '';
|
||||
disposables = [];
|
||||
|
||||
/**
|
||||
* @param {string} modelName = ''
|
||||
*/
|
||||
constructor(modelName = '')
|
||||
{
|
||||
constructor(modelName = '') {
|
||||
this.sModelName = modelName || '';
|
||||
}
|
||||
|
||||
regDisposables(value) {
|
||||
if (isArray(value))
|
||||
{
|
||||
if (isArray(value)) {
|
||||
value.forEach((item) => {
|
||||
this.disposables.push(item);
|
||||
});
|
||||
}
|
||||
else if (value)
|
||||
{
|
||||
} else if (value) {
|
||||
this.disposables.push(value);
|
||||
}
|
||||
}
|
||||
|
||||
onDestroy() {
|
||||
onDestroy() {
|
||||
disposeObject(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue