From 9c017ac993f3c685b485f71098b4a76a02c1ffbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Tue, 26 May 2015 19:50:18 +0200 Subject: [PATCH] Fix bind warning --- js/components/ascribe_table/table_item_selectable.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/components/ascribe_table/table_item_selectable.js b/js/components/ascribe_table/table_item_selectable.js index 8e48b816..974c5453 100644 --- a/js/components/ascribe_table/table_item_selectable.js +++ b/js/components/ascribe_table/table_item_selectable.js @@ -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 ( + onClick={this.selectItem}> ); }