blob: 7c22cd6115f657c2f80c635337a01b4fe076ab33 (
plain)
1
2
3
4
5
6
7
8
9
|
class Dashing.Ccmenu extends Dashing.Widget
onData: (data) ->
if data.color
# clear existing "status-*" classes
$(@get('node')).attr 'class', (i,c) ->
c.replace /\bstatus-\S+/g, ''
# add new class
$(@get('node')).addClass "status-#{data.color}"
|