some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-02-10 14:01:41 +03:00
parent 27658ce3dc
commit b30681fad8
2 changed files with 5 additions and 3 deletions

View File

@ -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)},

View File

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