_.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 ko from 'ko';
import { StorageResultType, ServerSecure, Ports, Notification } from 'Common/Enums';
@ -201,7 +200,7 @@ class DomainPopupView extends AbstractViewNext {
createOrAddCommand() {
this.saving(true);
Remote.createOrUpdateDomain(
_.bind(this.onDomainCreateOrSaveResponse, this),
this.onDomainCreateOrSaveResponse.bind(this),
!this.edit(),
this.name(),
@ -238,7 +237,7 @@ class DomainPopupView extends AbstractViewNext {
this.testing(true);
Remote.testConnectionForDomain(
_.bind(this.onTestConnectionResponse, this),
this.onTestConnectionResponse.bind(this),
this.name(),
this.imapServer(),