PageRenderTime 17ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 14ms app.codeStats 0ms

/app/components/ListComponent.io

http://github.com/pgregory/blackpool
Unknown | 16 lines | 13 code | 3 blank | 0 comment | 0 complexity | cc438841e3317c0b6a0a310ccddacaaa MD5 | raw file
 1ListComponent := Object clone do(
 2  init := method(
 3    items ::= List clone
 4    filterBlock ::= block(items, items)
 5  )
 6
 7  renderOn := method(html,
 8    html table with( 
 9      filterBlock call(items) foreach(i, 
10        renderItem(i, html)
11      )
12    )
13  )
14)
15
16