Fix space-before-function-paren eslint rule

[MAILPOET-985]
This commit is contained in:
Pavel Dohnal
2017-07-05 09:31:46 +01:00
parent 6dc1bf4e95
commit f39cbe6b55
37 changed files with 374 additions and 375 deletions

View File

@ -8,7 +8,7 @@ define([
'form/fields/selection.jsx',
'form/fields/date.jsx',
],
function(
function (
React,
FormFieldText,
FormFieldTextarea,
@ -19,7 +19,7 @@ function(
FormFieldDate
) {
var FormField = React.createClass({
renderField: function(data, inline = false) {
renderField: function (data, inline = false) {
var description = false;
if(data.field.description) {
description = (
@ -83,11 +83,11 @@ function(
);
}
},
render: function() {
render: 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(function (subfield, index) {
return this.renderField({
index: index,
field: subfield,