more fixing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-01-15 05:16:52 +03:00
parent 714d70ee9f
commit f4bb70012b
2 changed files with 11 additions and 10 deletions

View File

@ -903,8 +903,8 @@ Action.prototype.post = function(context, data){
.forEach(function(func){ .forEach(function(func){
func.call(context) }) func.call(context) })
// top calls... // top calls...
if(context.__action_after_running if(context.__action_after_running){
&& context.__action_after_running[0] == null){ if(context.__action_after_running[0] == null){
;(context.__action_after_running[1] || []) ;(context.__action_after_running[1] || [])
.forEach(function(func){ .forEach(function(func){
func.call(context) }) func.call(context) })
@ -913,6 +913,7 @@ Action.prototype.post = function(context, data){
} else { } else {
context.__action_after_running = context.__action_after_running[0] context.__action_after_running = context.__action_after_running[0]
} }
}
return res return res
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-actions", "name": "ig-actions",
"version": "3.22.1", "version": "3.22.2",
"description": "", "description": "",
"main": "actions.js", "main": "actions.js",
"scripts": { "scripts": {