abe33/awesome_form

View on GitHub
app/assets/javascripts/awesome_ui/mixins/activable.js.coffee

Summary

Maintainability
Test Coverage
class mixins.Activable
  active: false

  activate: ->
    @active = true
    @on_activate?()

  deactivate: ->
    @active = false
    @on_deactivate?()