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

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