minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-05-16 02:26:51 +03:00
parent 779228cda9
commit f24df1951a

View File

@ -401,6 +401,10 @@ Action.prototype.__proto__ = Function
// .post(context, data) // .post(context, data)
// -> result // -> result
// //
//
// NOTE: All the defaults should be handled by the pre stage, post will
// process data assuming that it is correct.
//
// XXX revise the structure.... // XXX revise the structure....
// ...is it a better idea to define action methods in an object // ...is it a better idea to define action methods in an object
// and assign that??? // and assign that???
@ -485,7 +489,7 @@ Action.prototype.pre = function(context, args){
} }
} }
Action.prototype.post = function(context, data){ Action.prototype.post = function(context, data){
var res = data.result || context var res = data.result
var args = data.arguments || [] var args = data.arguments || []
// the post handlers get the result as the first argument... // the post handlers get the result as the first argument...