Skip to content

Commit

Permalink
use key instead of track-by in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 8, 2016
1 parent d9ce130 commit c995e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/reorder-list/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>{{ total }} Components</h1>
<button @click="shuffle">shuffle</button>
<button @click="add">add</button>
<table class="table table-hover table-striped test-data">
<row v-for="item in items" track-by="item.id"
<row v-for="item in items" :key="item.id"
:class="{ danger: item.id === selected }"
:item="item"
@select="select(item)"
Expand Down

0 comments on commit c995e1e

Please sign in to comment.