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