remote: track listeners for browser side

This commit is contained in:
Robo 2015-10-28 03:45:46 +05:30
parent 386325915b
commit 62d15953ff
3 changed files with 24 additions and 0 deletions

View file

@ -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