Properly bind worker.state class

This commit is contained in:
Piotr Sarnacki 2013-03-07 18:08:26 +01:00
parent ffd1b6d917
commit 44bef520a0

View File

@ -60,6 +60,8 @@
this.$().find('> li').toggleClass('open')
WorkersItemView: Travis.View.extend
classNameBindings: ['worker.state']
display: (->
name = (@get('worker.name') || '').replace('travis-', '')
state = @get('worker.state')