14 lines
281 B
CoffeeScript
14 lines
281 B
CoffeeScript
class Locomotive.Views.ApplicationView extends Backbone.View
|
|
|
|
el: 'body'
|
|
|
|
render: ->
|
|
@render_flash_messages(@options.flash)
|
|
|
|
return @
|
|
|
|
render_flash_messages: (messages) ->
|
|
_.each messages, (couple) ->
|
|
console.log(couple);
|
|
$.growl couple[0], couple[1]
|