Updated: dependencies

+ small fixes
This commit is contained in:
RainLoop Team 2016-10-18 20:52:43 +03:00
parent 760d9e6243
commit ae996b75f1
16 changed files with 59 additions and 67 deletions

View file

@ -1,7 +1,5 @@
class AbstractBoot
export class AbstractBoot
{
bootstart() {/* no-empty */}
}
export {AbstractBoot, AbstractBoot as default};

View file

@ -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};

View file

@ -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};

View file

@ -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};

View file

@ -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,