mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-28 09:50:10 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
072a3f4952
commit
fdf953d791
@ -941,9 +941,11 @@ module.MetaActions = {
|
|||||||
: this.parseStringAction.callAction(this, action, ...args) },
|
: this.parseStringAction.callAction(this, action, ...args) },
|
||||||
// XXX EXPERIMENTAL -- symantics of this are not final...
|
// XXX EXPERIMENTAL -- symantics of this are not final...
|
||||||
// XXX need str syntax for this...
|
// XXX need str syntax for this...
|
||||||
|
// XXX need to be able to both chain and parallel actions, a-la
|
||||||
|
// Promise.all(..)...
|
||||||
chain: function(actions, ...args){
|
chain: function(actions, ...args){
|
||||||
var that = this
|
var that = this
|
||||||
actions
|
return actions
|
||||||
.reduce(function(res, action){
|
.reduce(function(res, action){
|
||||||
return res instanceof Promise ?
|
return res instanceof Promise ?
|
||||||
res
|
res
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-actions",
|
"name": "ig-actions",
|
||||||
"version": "3.24.29",
|
"version": "3.24.30",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "actions.js",
|
"main": "actions.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user