|
@ -11,7 +11,7 @@ |
|
|
</button> |
|
|
</button> |
|
|
<div if={ this.booksshown }> |
|
|
<div if={ this.booksshown }> |
|
|
<dl> |
|
|
<dl> |
|
|
<book each={ this.uniq(books) } data="{ this }"> |
|
|
<book each={ this.R.uniq(books) } data="{ this }"> |
|
|
</book> |
|
|
</book> |
|
|
</dl> |
|
|
</dl> |
|
|
</div> |
|
|
</div> |
|
@ -24,7 +24,7 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { default as R } from 'ramda'; |
|
|
import { default as R } from 'ramda'; |
|
|
this.uniq = R.uniq; |
|
|
this.R = R; |
|
|
this.booksshown = false; |
|
|
this.booksshown = false; |
|
|
|
|
|
|
|
|
showbooks() { |
|
|
showbooks() { |
|
|