Sha256: bc456c0efb5a7594df16c197bc6f4c3a28de473306abff535d8763e176d75e8e
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
# A button that counts how often it is clicked. # This is implemented as a subclass of Button, # to take advantage of the already existing functionality there. class window.modularity.CounterButton extends modularity.Button constructor: -> super # Counts how often this button has been clicked so far. @click_count = 0 # We override the event handler for the 'clicked' event here. container_clicked: => @fire_event 'clicked', ++@click_count
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
modularity-rails-0.9.0 | vendor/assets/javascripts/modules/counter_button.coffee |