minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-10-04 04:37:49 +03:00
parent dac806cbd1
commit 08d3fd0e98

View File

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