From 08d3fd0e986543408a962b3afc9abccde043b05d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 4 Oct 2016 04:37:49 +0300 Subject: [PATCH] minor fix... Signed-off-by: Alex A. Naanou --- pwiki.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pwiki.js b/pwiki.js index cc2b1d8..b6470ce 100755 --- a/pwiki.js +++ b/pwiki.js @@ -1070,13 +1070,15 @@ module.hiddenPromise = { var lazy = this.__lazy delete this.__lazy - return this + var res = this .then(lazy) .then(func) // clear any lazy stuff queued by the above to avoid any // side-effects... delete this.__lazy + + return res } // no promise...