Sha256: 6ce356fb549387729460aaaa05eaf5cece09c2f9ad102532cca55eba12d83b3e
Contents?: true
Size: 422 Bytes
Versions: 22
Compression:
Stored size: 422 Bytes
Contents
# This mixin adds a 'clickable' aspect to modules. # This means clicking anywhere on the module fires the 'clicked' event. modularity.clickable = constructor: -> @container.click @container_clicked # Programmatically click this clickable element. # For testing and scripting. click: -> @container.click() # Event handler for clicks on this clickable element. container_clicked: -> @trigger 'clicked'
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
modularity-rails-0.20.0 | app/assets/javascripts/modularity/mixins/clickable.coffee |
modularity-rails-0.19.0 | app/assets/javascripts/modularity/mixins/clickable.coffee |