Thibaut CouroubleMinor code cleanupe2ad2e59 years agoHistory
27 lines · 406 B · Text
RawDownload
class app.views.Notice extends app.View  @className: '_notice'  @attributes:    role: 'alert'   constructor: (@type, @args...) -> super   init: ->    @activate()    return   activate: ->    @show() if super    return   deactivate: ->    @hide() if super    return   show: ->    @html @tmpl("#{@type}Notice", @args...)    @prependTo app.el    return   hide: ->    $.remove @el    return