mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Fix bind warning
This commit is contained in:
parent
64793cd90b
commit
9c017ac993
@ -17,17 +17,20 @@ let TableItemSelectable = React.createClass({
|
||||
columnContent: React.PropTypes.object
|
||||
},
|
||||
|
||||
selectItem() {
|
||||
this.props.selectItem(this.props.parentId, this.props.columnContent.edition_number);
|
||||
},
|
||||
|
||||
render() {
|
||||
let tableItemClasses = classNames({
|
||||
'ascribe-table-item-selected': this.props.columnContent.selected
|
||||
});
|
||||
let boundSelectItem = this.props.selectItem.bind(this, this.props.parentId, this.props.columnContent.edition_number);
|
||||
|
||||
return (
|
||||
<TableItem classNames={tableItemClasses}
|
||||
columnList={this.props.columnList}
|
||||
columnContent={this.props.columnContent}
|
||||
onClick={boundSelectItem}>
|
||||
onClick={this.selectItem}>
|
||||
</TableItem>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user