mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
prevent creation of _defineProperty() function
This commit is contained in:
parent
eff92c3152
commit
986b8f056b
8 changed files with 24 additions and 57 deletions
|
|
@ -23,14 +23,13 @@ function typeCast(curValue, newValue) {
|
|||
}
|
||||
|
||||
export class AbstractModel {
|
||||
subscribables = [];
|
||||
|
||||
constructor() {
|
||||
/*
|
||||
if (new.target === AbstractModel) {
|
||||
throw new Error("Can't instantiate AbstractModel!");
|
||||
}
|
||||
*/
|
||||
this.subscribables = [];
|
||||
}
|
||||
|
||||
addObservables(observables) {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
export class AbstractScreen {
|
||||
oCross = null;
|
||||
sScreenName;
|
||||
aViewModels;
|
||||
|
||||
constructor(screenName, viewModels = []) {
|
||||
this.oCross = null;
|
||||
this.sScreenName = screenName;
|
||||
this.aViewModels = Array.isArray(viewModels) ? viewModels : [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue