Fix prefer-arrow-callback eslint rule

[MAILPOET-985]
This commit is contained in:
Pavel Dohnal
2017-07-05 09:48:35 +01:00
parent 3ba857d03f
commit 4706c5fc25
36 changed files with 143 additions and 144 deletions

View File

@ -8,7 +8,7 @@ define([
'form/fields/selection.jsx',
'form/fields/date.jsx',
],
function (
(
React,
FormFieldText,
FormFieldTextarea,
@ -17,7 +17,7 @@ function (
FormFieldCheckbox,
FormFieldSelection,
FormFieldDate
) {
) => {
var FormField = React.createClass({
renderField: function (data, inline = false) {
var description = false;
@ -87,14 +87,14 @@ function (
var field = false;
if(this.props.field['fields'] !== undefined) {
field = this.props.field.fields.map(function (subfield, index) {
field = this.props.field.fields.map((subfield, index) => {
return this.renderField({
index: index,
field: subfield,
item: this.props.item,
onValueChange: this.props.onValueChange || false
});
}.bind(this));
});
} else {
field = this.renderField(this.props);
}