From 8578bf3ae1cf115ecf17e40de58e3840831699f3 Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Mon, 10 Dec 2018 13:13:48 +0000 Subject: [PATCH] bind this context when currying --- src/lib/Fetcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Fetcher.js b/src/lib/Fetcher.js index 3103145..5099258 100644 --- a/src/lib/Fetcher.js +++ b/src/lib/Fetcher.js @@ -57,7 +57,7 @@ class Fetcher { this.auth = null /** curry to allow convenient syntax with map */ - this._saveViaBlueprinter = R.curry(this._saveViaBlueprinter) + this._saveViaBlueprinter = R.curry(this._saveViaBlueprinter.bind(this)) } _buildBlueprintsAsync () {