diff --git a/actions.js b/actions.js index 1b86279..d4f770d 100755 --- a/actions.js +++ b/actions.js @@ -903,7 +903,8 @@ Action.prototype.post = function(context, data){ .forEach(function(func){ func.call(context) }) // top calls... - if(context.__action_after_running[0] == null){ + if(context.__action_after_running + && context.__action_after_running[0] == null){ ;(context.__action_after_running[1] || []) .forEach(function(func){ func.call(context) }) diff --git a/package.json b/package.json index d4d051e..542bab6 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.22.0", + "version": "3.22.1", "description": "", "main": "actions.js", "scripts": {