_.bind(function, object) to function.bind(object)

This commit is contained in:
djmaze 2020-07-20 15:47:33 +02:00
parent db2d95d684
commit af136f46c4
23 changed files with 38 additions and 45 deletions

View file

@ -1,4 +1,3 @@
import _ from '_';
import crossroads from 'crossroads';
import { isArray, isNonEmptyArray, noop } from 'Common/Utils';
@ -49,7 +48,7 @@ export class AbstractScreen {
const routes = this.routes();
if (isNonEmptyArray(routes)) {
fMatcher = _.bind(this.onRoute || noop, this);
fMatcher = (this.onRoute || noop).bind(this);
route = crossroads.create();
routes.forEach((item) => {