mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 06:57: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 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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue