Sha256: 3f98180fcb2b3946d5256af2cbc8dcbf6391481a49fa1d462dece29e6aba4073

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

window.SC ||= {}

class SC.WarningView extends Backbone.View

  initialize: ->
    @el = $('#carousel-error-message')
    this.render()
    @model.bind 'change', this.render

  render: =>
    if @model.isEmpty()
      @el.show()
    else
      @el.hide()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
partystreusel-0.0.2 vendor/assets/javascripts/carousel/views/warning_view.js.coffee
partystreusel-0.0.1 vendor/assets/javascripts/carousel/views/warning_view.js.coffee