From 17e107aa0a277410a7c1d92bcfb50810d670770f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 14 Nov 2017 15:31:15 +0100 Subject: [PATCH] Fixed this binding/proxy in callback. --- app/assets/javascripts/app/lib/app_post/_collection_base.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/lib/app_post/_collection_base.coffee b/app/assets/javascripts/app/lib/app_post/_collection_base.coffee index ddd758914..2e1a487b0 100644 --- a/app/assets/javascripts/app/lib/app_post/_collection_base.coffee +++ b/app/assets/javascripts/app/lib/app_post/_collection_base.coffee @@ -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]