diff --git a/actions.js b/actions.js index 505aea3..54f83dd 100755 --- a/actions.js +++ b/actions.js @@ -941,9 +941,11 @@ module.MetaActions = { : this.parseStringAction.callAction(this, action, ...args) }, // XXX EXPERIMENTAL -- symantics of this are not final... // 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){ var that = this - actions + return actions .reduce(function(res, action){ return res instanceof Promise ? res diff --git a/package.json b/package.json index 02e2092..1db2c93 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.24.29", + "version": "3.24.30", "description": "", "main": "actions.js", "scripts": {