a minor convenience...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-02-18 13:24:20 +03:00
parent f0995f1676
commit 75343d4bd1
2 changed files with 6 additions and 1 deletions

View File

@ -757,6 +757,11 @@ Action.prototype.pre = function(context, args){
// return context if nothing specific is returned...
res = res === undefined ? context
: res === UNDEFINED ? undefined
// returning an explicit [undefined]... (XXX EXPERIMENTAL)
: res instanceof Array
&& res.length == 1
&& res.indexOf(undefined) == 0 ?
undefined
: res
return {

View File

@ -1,6 +1,6 @@
{
"name": "ig-actions",
"version": "3.16.0",
"version": "3.17.0",
"description": "",
"main": "actions.js",
"scripts": {