Merge pull request #616 from davidhellsing/patch-1

Backbone example: changed key from Math.random() to todo.cid
This commit is contained in:
Paul O’Shannessy
2013-11-27 12:14:40 -08:00
+1 -1
View File
@@ -236,7 +236,7 @@ var TodoApp = React.createClass({
var todoItems = this.props.todos.map(function(todo) {
return (
<TodoItem
key={Math.random()}
key={todo.cid}
todo={todo}
onToggle={todo.toggle.bind(todo)}
onDestroy={todo.destroy.bind(todo)}