minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-03-10 10:37:07 +03:00
parent 072a3f4952
commit fdf953d791
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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": {