class @Flash constructor: (message, type)-> flash = $(".flash-container") flash.html("") $('
', class: "flash-#{type}", text: message ).appendTo(".flash-container") flash.click -> $(@).fadeOut() flash.show()