class app.views.Notice extends app.View
@className: '_notice'
@attributes:
role: 'alert'
constructor: (@type, @args...) -> super
init: ->
@activate()
return
activate: ->
@show() if super
deactivate: ->
@hide() if super
show: ->
@html @tmpl("#{@type}Notice", @args...)
@prependTo app.el
hide: ->
$.remove @el