_.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

@ -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) {