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
|
columnContent: React.PropTypes.object
|
||||||
},
|
},
|
||||||
|
|
||||||
|
selectItem() {
|
||||||
|
this.props.selectItem(this.props.parentId, this.props.columnContent.edition_number);
|
||||||
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let tableItemClasses = classNames({
|
let tableItemClasses = classNames({
|
||||||
'ascribe-table-item-selected': this.props.columnContent.selected
|
'ascribe-table-item-selected': this.props.columnContent.selected
|
||||||
});
|
});
|
||||||
let boundSelectItem = this.props.selectItem.bind(this, this.props.parentId, this.props.columnContent.edition_number);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TableItem classNames={tableItemClasses}
|
<TableItem classNames={tableItemClasses}
|
||||||
columnList={this.props.columnList}
|
columnList={this.props.columnList}
|
||||||
columnContent={this.props.columnContent}
|
columnContent={this.props.columnContent}
|
||||||
onClick={boundSelectItem}>
|
onClick={this.selectItem}>
|
||||||
</TableItem>
|
</TableItem>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user