mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-20 18:11:41 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
dac806cbd1
commit
08d3fd0e98
4
pwiki.js
4
pwiki.js
@ -1070,13 +1070,15 @@ module.hiddenPromise = {
|
|||||||
var lazy = this.__lazy
|
var lazy = this.__lazy
|
||||||
delete this.__lazy
|
delete this.__lazy
|
||||||
|
|
||||||
return this
|
var res = this
|
||||||
.then(lazy)
|
.then(lazy)
|
||||||
.then(func)
|
.then(func)
|
||||||
|
|
||||||
// clear any lazy stuff queued by the above to avoid any
|
// clear any lazy stuff queued by the above to avoid any
|
||||||
// side-effects...
|
// side-effects...
|
||||||
delete this.__lazy
|
delete this.__lazy
|
||||||
|
|
||||||
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// no promise...
|
// no promise...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user