remote: track listeners for browser side
This commit is contained in:
parent
386325915b
commit
62d15953ff
3 changed files with 24 additions and 0 deletions
|
@ -7,6 +7,10 @@ class CallbacksRegistry
|
|||
add: (callback) ->
|
||||
id = ++@nextId
|
||||
|
||||
for id,value of @callbacks
|
||||
if value == callback
|
||||
return id
|
||||
|
||||
# Capture the location of the function and put it in the ID string,
|
||||
# so that release errors can be tracked down easily.
|
||||
regexp = /at (.*)/gi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue