Skip to content

Commit

Permalink
Updated lib js file
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaj221 authored and adityaj221 committed Jul 22, 2016
1 parent 52b97d7 commit 0dbcdfb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/card-react-form-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
};
},
componentWillMount: function() {
var type, _i, _len, _ref, _results;
var i, len, ref, results, type;
this.inputsValues = {};
this.inputsRefs = {};
this.cardFlipped = false;
_ref = this.props.fieldTypes;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
type = _ref[_i];
_results.push(this.inputsValues[this.props.formInputsNames[type]] = this.props.initialValues[type]);
ref = this.props.fieldTypes;
results = [];
for (i = 0, len = ref.length; i < len; i++) {
type = ref[i];
results.push(this.inputsValues[this.props.formInputsNames[type]] = this.props.initialValues[type]);
}
return _results;
return results;
},
componentDidMount: function() {
if (!this.props.container) {
Expand All @@ -70,7 +70,7 @@
},
renderCardComponent: function() {
if (this.cardContainer) {
return ReactDOM.render(React.createElement(ReactCard, React.__spread({}, this.props, {
return ReactDOM.render(React.createElement(ReactCard, Object.assign({}, this.props, {
"cardFlipped": this.cardFlipped,
"focusedInput": this.focusedInput,
"inputsValues": this.inputsValues,
Expand All @@ -97,7 +97,7 @@
_this.inputsRefs[child.props.name] = "react-card-input-" + child.props.name;
}
if (newClassName && inputsValidationClass) {
newClassName = "" + newClassName + " " + inputsValidationClass;
newClassName = newClassName + " " + inputsValidationClass;
} else if (inputsValidationClass) {
newClassName = inputsValidationClass;
}
Expand Down

0 comments on commit 0dbcdfb

Please sign in to comment.