Sha256: 4c879dc747bf29d814c83d601c7b73c519336dac15a91f34956a5574957a09c0

Contents?: true

Size: 528 Bytes

Versions: 8

Compression:

Stored size: 528 Bytes

Contents

class Transponder.Service
  serviceName: null
  element: null
  module: null

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


  serve: ->

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
transponder-0.10.4 lib/assets/javascripts/transponder/service.coffee
transponder-0.10.2 lib/assets/javascripts/transponder/service.coffee
transponder-0.10.1 lib/assets/javascripts/transponder/service.coffee
transponder-0.9.6 lib/assets/javascripts/transponder/service.coffee
transponder-0.9.5 lib/assets/javascripts/transponder/service.coffee
transponder-0.9.4 lib/assets/javascripts/transponder/service.coffee
transponder-0.9.3 lib/assets/javascripts/transponder/service.coffee
transponder-0.9.2 lib/assets/javascripts/transponder/service.coffee