[IMP] update to react 0.13

This commit is contained in:
Xavier Morel
2015-03-11 14:20:13 +01:00
parent 3a50541a59
commit d2cc62be72
4 changed files with 5811 additions and 4065 deletions
+2 -2
View File
@@ -45,7 +45,7 @@
" ",
label
);
}).toArray());
}));
}
});
@@ -86,7 +86,7 @@
(data.get('debit') - data.get('credit')) || ''
)
);
}).toArray()
})
)
);
},
+3 -3
View File
@@ -41,7 +41,7 @@
' ',
entry.get('title')
);
}, this).toArray(),
}, this),
this.props.entry && React.DOM.p(null, this.props.entry.get('help'))
);
}
@@ -79,7 +79,7 @@
},
render_rows: function () {
if (!this.props.entry) { return; }
return this.props.entry.get('operations').map(this.render_row).toArray();
return this.props.entry.get('operations').map(this.render_row);
},
render_row: function (entry, index) {
if (!entry) {
@@ -108,7 +108,7 @@
null,
this.props.items.map(function (item, index) {
return React.DOM.li({key: index}, item);
}).toArray()
})
)
);
}
+5799 -4053
View File
File diff suppressed because it is too large Load Diff
+7 -7
View File
File diff suppressed because one or more lines are too long