dillon1000/react

Commit

Changed key from Math.random() to todo.cid

It doesn’t make much sense to generate a random key for each todo render, because it will re-draw all todo’s DOM nodes on each model change. I changed it to the unique identifier ``todo.cid`` already supplied by the backbone model.
Browse files
Changed paths1 file
First-parent comparison
M examples/todomvc-backbone/js/app.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…