mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 18:30:10 +00:00
doc...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
be30a396f2
commit
1a7eb87609
@ -528,8 +528,10 @@ Action.prototype.chainApply = function(context, inner, args){
|
|||||||
var data = this.pre(context, args)
|
var data = this.pre(context, args)
|
||||||
|
|
||||||
// call the inner action/function if preset....
|
// call the inner action/function if preset....
|
||||||
|
// NOTE: this is slightly different (see docs) to what happens in
|
||||||
|
// .pre(..)/.post(..), thus we are doing this separately and
|
||||||
|
// not reusing existing code...
|
||||||
if(inner){
|
if(inner){
|
||||||
// XXX need a way to pass data.result to inner... (???)
|
|
||||||
var res = inner instanceof Function ?
|
var res = inner instanceof Function ?
|
||||||
inner.apply(context, args)
|
inner.apply(context, args)
|
||||||
: inner instanceof Array && inner.length > 0 ?
|
: inner instanceof Array && inner.length > 0 ?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user