diff --git a/actions.js b/actions.js index 0f324c0..d966eee 100755 --- a/actions.js +++ b/actions.js @@ -469,8 +469,9 @@ Action.prototype.pre = function(context, args){ }) // return context if nothing specific is returned... - res = res === undefined ? context : res - res = res === UNDEFINED ? undefined : res + res = res === undefined ? context + : res === UNDEFINED ? undefined + : res return { arguments: args, diff --git a/package.json b/package.json index 1519904..9113d9e 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "1.2.0", + "version": "1.2.1", "description": "", "main": "actions.js", "scripts": {