travis-web/assets/scripts/app/views/flash.coffee
Piotr Sarnacki a4fccf800a Don't use id for flash view
When logging out and then logging back in, there is sometimes an error
when registering flash view, which says that it can't register 2 views
with the same id. We don't need to use id here, so I just changed id to
class
2013-05-16 13:33:07 +02:00

17 lines
357 B
CoffeeScript

@Travis.reopen
FlashView: Travis.View.extend
classNames: ['flash']
tagName: 'ul'
templateName: 'layouts/flash'
FlashItemView: Travis.View.extend
tagName: 'li'
classNameBindings: ['type']
type: (->
@get('flash.type') || 'broadcast'
).property('flash.type')
close: ->
@get('controller').close(@get('flash'))