removed obsolete code

This commit is contained in:
Jonathan Labreuille
2015-10-01 12:31:19 +02:00
parent 9bb7a83b99
commit 48b027fa62

View File

@@ -119,25 +119,13 @@ define(
); );
var fields = this.props.fields.map(function(field, i) { var fields = this.props.fields.map(function(field, i) {
// if(field['fields'] !== undefined) { return (
// return field.fields.map(function(subfield, j) { <FormField
// return ( field={ field }
// <FormField item={ this.state.item }
// field={ subfield } onValueChange={ this.handleValueChange }
// item={ this.state.item } key={ 'field-'+i } />
// onValueChange={ this.handleValueChange } );
// key={ 'subfield-'+j } />
// );
// }.bind(this));
// } else {
return (
<FormField
field={ field }
item={ this.state.item }
onValueChange={ this.handleValueChange }
key={ 'field-'+i } />
);
// }
}.bind(this)); }.bind(this));
return ( return (