mirror of
https://github.com/zhigang1992/reactfire.git
synced 2026-04-24 04:25:40 +08:00
fix bind warning in todoApp example
This commit is contained in:
@@ -6,7 +6,7 @@ var TodoList2 = React.createClass({
|
||||
return (
|
||||
<li key={ index }>
|
||||
{ item.text }
|
||||
<span onClick={ _this.props.removeItem.bind(_this, item['.key']) }
|
||||
<span onClick={ _this.props.removeItem.bind(null, item['.key']) }
|
||||
style={{ color: 'red', marginLeft: '10px', cursor: 'pointer' }}>
|
||||
X
|
||||
</span>
|
||||
|
||||
@@ -6,7 +6,7 @@ var TodoList3 = React.createClass({
|
||||
return (
|
||||
<li key={ index }>
|
||||
{ item.text }
|
||||
<span onClick={ _this.props.removeItem.bind(_this, item['.key']) }
|
||||
<span onClick={ _this.props.removeItem.bind(null, item['.key']) }
|
||||
style={{ color: 'red', marginLeft: '10px', cursor: 'pointer' }}>
|
||||
X
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user