mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +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
|
|
@ -24,7 +24,7 @@ class AbstractRadio extends AbstractComponent {
|
|||
this.values(_.map(params.values, (label, value) => ({ label: label, value: value })));
|
||||
}
|
||||
|
||||
this.click = _.bind(this.click, this);
|
||||
this.click = this.click.bind(this);
|
||||
}
|
||||
|
||||
click(value) {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ class CheckboxMaterialDesignComponent extends AbstractCheckbox {
|
|||
this.animationBox = ko.observable(false).extend({ falseTimeout: 200 });
|
||||
this.animationCheckmark = ko.observable(false).extend({ falseTimeout: 200 });
|
||||
|
||||
this.animationBoxSetTrue = _.bind(this.animationBoxSetTrue, this);
|
||||
this.animationCheckmarkSetTrue = _.bind(this.animationCheckmarkSetTrue, this);
|
||||
this.animationBoxSetTrue = this.animationBoxSetTrue.bind(this);
|
||||
this.animationCheckmarkSetTrue = this.animationCheckmarkSetTrue.bind(this);
|
||||
|
||||
this.disposable.push(
|
||||
this.value.subscribe((value) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue