
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
17 lines
357 B
CoffeeScript
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'))
|