mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 10:20:09 +00:00
not sure about last change...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
75343d4bd1
commit
da0923343f
10
actions.js
10
actions.js
@ -757,11 +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)
|
// XXX returning an explicit [undefined]...
|
||||||
: res instanceof Array
|
//: res instanceof Array
|
||||||
&& res.length == 1
|
// && res.length == 1
|
||||||
&& res.indexOf(undefined) == 0 ?
|
// && res.indexOf(undefined) == 0 ?
|
||||||
undefined
|
// undefined
|
||||||
: res
|
: res
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-actions",
|
"name": "ig-actions",
|
||||||
"version": "3.17.0",
|
"version": "3.18.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "actions.js",
|
"main": "actions.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user