blob: 6b1cc50d073055c0f9cff69a4c20a45afad1f1e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class AllTheThings.List extends AllTheThings.Widget
source: 'list'
@accessor 'current', Batman.Property.EasingSetter
@accessor 'arrow', ->
if @get('last')
if parseInt(@get('current')) > parseInt(@get('last')) then 'arrow-up' else 'arrow-down'
ready: ->
Batman.setImmediate =>
if @get('unordered')
$(@node).find('ol').remove()
else
$(@node).find('ul').remove()
|