mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
7f52467a8d
commit
4fdcd67bfd
@ -350,7 +350,7 @@ object.Constructor('IterablePromise', Promise, {
|
||||
return elem instanceof IterablePromise ?
|
||||
// XXX should elem be expanded??? (like Array below)
|
||||
(elem.isSync() ?
|
||||
handler(elem.sync())
|
||||
handler( elem.sync() )
|
||||
// XXX need to handle this but keep it IterablePromise...
|
||||
: elem.iterthen(handler))
|
||||
// sync sync promise...
|
||||
@ -365,7 +365,6 @@ object.Constructor('IterablePromise', Promise, {
|
||||
// NOTE: the promise protects this from .flat()
|
||||
// XXX do we need to wrap the handler(..) result
|
||||
// in an array here??? -- TEST!!!
|
||||
// XXX TEST!!!
|
||||
elem.then(function(elem){
|
||||
return !stop ?
|
||||
handler(unwrap( elem ))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user