mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 02:10:09 +00:00
a minor convenience...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f0995f1676
commit
75343d4bd1
@ -757,6 +757,11 @@ Action.prototype.pre = function(context, args){
|
|||||||
// return context if nothing specific is returned...
|
// return context if nothing specific is returned...
|
||||||
res = res === undefined ? context
|
res = res === undefined ? context
|
||||||
: res === UNDEFINED ? undefined
|
: res === UNDEFINED ? undefined
|
||||||
|
// returning an explicit [undefined]... (XXX EXPERIMENTAL)
|
||||||
|
: res instanceof Array
|
||||||
|
&& res.length == 1
|
||||||
|
&& res.indexOf(undefined) == 0 ?
|
||||||
|
undefined
|
||||||
: res
|
: res
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-actions",
|
"name": "ig-actions",
|
||||||
"version": "3.16.0",
|
"version": "3.17.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "actions.js",
|
"main": "actions.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user