Sha256: 5786bc810ba47e8f6e49c341c1abc0e74515b45fb454a21075215e052765d3b4
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
window.Transponder = buildEvent: (array) -> eventType = array.filter (val) -> typeof val isnt 'undefined' and val isnt null eventType.join(':') init: -> Transponder.eh = new Transponder.Error() Transponder.req = new Transponder.Request() Transponder.res = new Transponder.Response() buildServicesFor: (services) -> serviceEvents = [] for _, service of services serviceEvents.push("#{service::module}:services:#{service::serviceName}") $(document).on serviceEvents.join(' '), (e, message = {}) -> [module, _, service] = e.type.split(':') $(".#{service}:not(#{service}_active)").each (i, f) -> for _, fun of services if fun::serviceName is service and fun::module is module new fun(this, message)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transponder-2.0.0 | lib/assets/javascripts/transponder/setup.coffee |