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