mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-28 18:00:11 +00:00
fix: now inner fully supports the action protocol (returning a function -> post-handler) in .chain*(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b9e5d34254
commit
be30a396f2
@ -538,8 +538,13 @@ Action.prototype.chainApply = function(context, inner, args){
|
||||
context[inner].chainApply(context, null, args)
|
||||
: undefined
|
||||
|
||||
// call the resulting function...
|
||||
if(res instanceof Function){
|
||||
res.apply(context, [context].concat(args))
|
||||
data.result = context
|
||||
|
||||
// push the inner result into the chian...
|
||||
if(res !== undefined){
|
||||
} else if(res !== undefined){
|
||||
data.result = res
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-actions",
|
||||
"version": "1.7.0",
|
||||
"version": "1.7.1",
|
||||
"description": "",
|
||||
"main": "actions.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user