Fixed this binding/proxy in callback.

This commit is contained in:
Martin Edenhofer 2017-11-14 15:31:15 +01:00
parent f3ff650bfe
commit 17e107aa0a

View file

@ -77,7 +77,7 @@ class App._CollectionSingletonBase
callback: (data) =>
for counter, attr of @callbacks
callback = ->
callback = =>
attr.callback(data)
if attr.one
delete @callbacks[counter]