mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
_.bind(function, object) to function.bind(object)
This commit is contained in:
parent
db2d95d684
commit
af136f46c4
23 changed files with 38 additions and 45 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue