Made eslint using 'browser' environment and added globals, because RainLoop is used in browsers.

This also allowed to remove all webpack 'externals' overhead.
This commit is contained in:
djmaze 2020-08-12 00:25:36 +02:00
parent c3a213802d
commit e7180a86ce
81 changed files with 1857 additions and 1259 deletions

View file

@ -1,6 +1,3 @@
import crossroads from 'crossroads';
import { isNonEmptyArray } from 'Common/Utils';
export class AbstractScreen {
oCross = null;
sScreenName;
@ -47,9 +44,9 @@ export class AbstractScreen {
fMatcher = null;
const routes = this.routes();
if (isNonEmptyArray(routes)) {
if (Array.isArray(routes) && routes.length) {
fMatcher = (this.onRoute || (()=>{})).bind(this);
route = crossroads.create();
route = new Crossroads();
routes.forEach((item) => {
if (item && route) {