Sha256: 7a9d344aeb770d776c67caa88225d2cb5f3383bc0b5280ad3435f08ee60f8e8c

Contents?: true

Size: 1021 Bytes

Versions: 71

Compression:

Stored size: 1021 Bytes

Contents

define ->
  AccessibleViewItemView = Backbone.View.extend
    tagName: 'div'

    events: 
      "click": "clicked"
      "mouseover":"mousedover"
      "mouseout":"mousedout"

    render: ->
      @$el.empty().append( """
        <a href="#" title="#{@model.getShelleySelector()}">
          <span class="viewClass">#{@model.get('class')}</span>
          with label
          "<span class="viewLabel">#{@model.get('accessibilityLabel')}</span>"
        </a>
      """)
      @
      
    mousedover: -> @model.setActive()
    mousedout: -> @model.unsetActive()

    clicked: ->
      @model.trigger( 'accessible-selected', @model )
  
  
  AccessibleViewsView = Backbone.View.extend
    el: $('#accessible-views')

    initialize: ->
      @collection = new Backbone.Collection
      @collection.on 'reset', _.bind(@render,@)
        

    render: ->
      @$el.empty()
      @collection.each (viewModel) =>
        @$el.append( new AccessibleViewItemView(model:viewModel).render().el )
      @

   AccessibleViewsView

Version data entries

71 entries across 54 versions & 5 rubygems

Version Path
sc-frank-ios-1.2.3 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
frank-cucumber-1.2.5 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
frank-cucumber-1.2.4.pre1 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
frank-pivotal-1.3.0.pre.2 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.bba52d7.debug frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.e1e3ccb.debug frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.1a856ca.debug frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
frank-pivotal-1.3.0.pre.1 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
frank-pivotal-1.2.4 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
frank-pivotal-1.2.3.pre.2 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
frank-pivotal-1.2.3.pre.1 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
frank-pivotal-1.2.3 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.b7791c5.debug frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.b7791c5.debug frank-skeleton/frank_static_resources.bundle/bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.b7791c5.debug frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
frank-cucumber-1.2.3 frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.3256dc1.debug frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.3256dc1.debug frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.3256dc1.debug frank-skeleton/frank_static_resources.bundle/bundle/js/accessible_views_view.coffee
sc-frank-cucumber-1.2.1.9c95c03.debug frank-skeleton/frank_static_resources.bundle/js/accessible_views_view.coffee