Skip to content

Commit

Permalink
added atributes to list items
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Esquinca authored and Gustavo Esquinca committed Mar 20, 2015
1 parent f7c4ac0 commit 9800669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/scripts/main.jsx
Expand Up @@ -35,7 +35,9 @@
// jsx
return <ul>
{people.map(function (person) {
return <li>{person.name}</li>;
return <li class='class' key={person.id} onclick={fadesOut(ctrl.remove.bind(this, person))} config={fadesIn}>
{person.name}
</li>
})}
</ul>
}
Expand Down

0 comments on commit 9800669

Please sign in to comment.