Sha256: 186124a10a7b13bc9be654e0ca8dac9c272274c9172643fef89cdd519bb96c4d

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

class Transponder.Service
  serviceName: null
  element: null

  constructor: ->
    throw new Transponder.InvalidService('no service name specified.') unless @serviceName?
    _this = this
    $(document).on _this.serviceName, (e) ->
      service = _this.serviceName.split(':').pop()
      $(".#{service}:not(#{service}_active)").each (i, e) ->
        _this.element = $(this)
        _this.element.addClass("#{service}_active")
        _this.serve()

  serve: ->

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
transponder-0.0.7 lib/assets/javascripts/transponder/service.coffee
transponder-0.0.6 lib/assets/javascripts/transponder/service.coffee
transponder-0.0.5 lib/assets/javascripts/transponder/service.coffee