Use - as filename seperator for coffee script files. Fixes #15.

Also clean unused files and wrong file names.
This commit is contained in:
Cheng Zhao 2013-05-30 20:16:54 +08:00
parent 9ea1f9956e
commit bb69d99423
15 changed files with 28 additions and 39 deletions

View file

@ -0,0 +1,21 @@
module.exports =
class CallbacksRegistry
constructor: ->
@nextId = 0
@callbacks = {}
add: (callback) ->
@callbacks[++@nextId] = callback
@nextId
get: (id) ->
@callbacks[id]
call: (id, args...) ->
@get(id).call global, args...
apply: (id, args...) ->
@get(id).apply global, args...
remove: (id) ->
delete @callbacks[id]