From b30681fad89c0245ac35c5f8fd4c6edbcdfed041 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 10 Feb 2018 14:01:41 +0300 Subject: [PATCH] some tweaking... Signed-off-by: Alex A. Naanou --- actions.js | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/actions.js b/actions.js index 131213f..d81d97e 100755 --- a/actions.js +++ b/actions.js @@ -1002,8 +1002,10 @@ module.MetaActions = { // XXX EXPERIMENTAL... call: function(action, ...args){ - return this[action] ? - this[action].apply(this, args) + return action instanceof Function ? + action.apply(this, args) + : this[action] ? + this[action].apply(this, args) : this.parseStringAction.applyAction(this, action, args) }, apply: function(action, args){ return this.call(action, ...args)}, diff --git a/package.json b/package.json index bdf6ef1..83cbeab 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.13.0", + "version": "3.14.0", "description": "", "main": "actions.js", "scripts": {