mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Updated: dependencies
+ small fixes
This commit is contained in:
parent
760d9e6243
commit
ae996b75f1
16 changed files with 59 additions and 67 deletions
|
|
@ -1,7 +1,5 @@
|
|||
|
||||
class AbstractBoot
|
||||
export class AbstractBoot
|
||||
{
|
||||
bootstart() {/* no-empty */}
|
||||
}
|
||||
|
||||
export {AbstractBoot, AbstractBoot as default};
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
|
||||
import _ from '_';
|
||||
import {isArray, disposeObject} from 'Common/Utils';
|
||||
|
||||
class AbstractModel
|
||||
export class AbstractModel
|
||||
{
|
||||
sModelName = '';
|
||||
disposables = [];
|
||||
|
|
@ -18,7 +17,7 @@ class AbstractModel
|
|||
regDisposables(value) {
|
||||
if (isArray(value))
|
||||
{
|
||||
_.each(value, (item) => {
|
||||
value.forEach((item) => {
|
||||
this.disposables.push(item);
|
||||
});
|
||||
}
|
||||
|
|
@ -32,5 +31,3 @@ class AbstractModel
|
|||
disposeObject(this);
|
||||
}
|
||||
}
|
||||
|
||||
export {AbstractModel, AbstractModel as default};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import _ from '_';
|
|||
import crossroads from 'crossroads';
|
||||
import {isArray, isNonEmptyArray, noop} from 'Common/Utils';
|
||||
|
||||
class AbstractScreen
|
||||
export class AbstractScreen
|
||||
{
|
||||
oCross = null;
|
||||
sScreenName;
|
||||
|
|
@ -57,7 +57,7 @@ class AbstractScreen
|
|||
fMatcher = _.bind(this.onRoute || noop, this);
|
||||
route = crossroads.create();
|
||||
|
||||
_.each(routes, (item) => {
|
||||
routes.forEach((item) => {
|
||||
if (item && route)
|
||||
{
|
||||
route.addRoute(item[0], fMatcher).rules = item[1];
|
||||
|
|
@ -68,5 +68,3 @@ class AbstractScreen
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
export {AbstractScreen, AbstractScreen as default};
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import {delegateRun, inFocus} from 'Common/Utils';
|
|||
import {KeyState, EventKeyCode} from 'Common/Enums';
|
||||
import {$win, keyScope} from 'Common/Globals';
|
||||
|
||||
class AbstractViewNext
|
||||
export class AbstractViewNext
|
||||
{
|
||||
bDisabeCloseOnEsc = false;
|
||||
sDefaultKeyScope = KeyState.None;
|
||||
|
|
@ -58,5 +58,3 @@ class AbstractViewNext
|
|||
cancelCommand() {} // eslint-disable-line no-empty-function
|
||||
closeCommand() {} // eslint-disable-line no-empty-function
|
||||
}
|
||||
|
||||
export {AbstractViewNext, AbstractViewNext as default};
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import hasher from 'hasher';
|
|||
import crossroads from 'crossroads';
|
||||
|
||||
import {runHook} from 'Common/Plugins';
|
||||
import {$html, aViewModels as VIEW_MODELS, popupVisibilityNames} from 'Common/Globals';
|
||||
import {$html, VIEW_MODELS, popupVisibilityNames} from 'Common/Globals';
|
||||
|
||||
import {
|
||||
isArray, isUnd, pString, log, isFunc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue