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