mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 18:30:10 +00:00
some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
27658ce3dc
commit
b30681fad8
@ -1002,8 +1002,10 @@ module.MetaActions = {
|
|||||||
|
|
||||||
// XXX EXPERIMENTAL...
|
// XXX EXPERIMENTAL...
|
||||||
call: function(action, ...args){
|
call: function(action, ...args){
|
||||||
return this[action] ?
|
return action instanceof Function ?
|
||||||
this[action].apply(this, args)
|
action.apply(this, args)
|
||||||
|
: this[action] ?
|
||||||
|
this[action].apply(this, args)
|
||||||
: this.parseStringAction.applyAction(this, action, args) },
|
: this.parseStringAction.applyAction(this, action, args) },
|
||||||
apply: function(action, args){
|
apply: function(action, args){
|
||||||
return this.call(action, ...args)},
|
return this.call(action, ...args)},
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-actions",
|
"name": "ig-actions",
|
||||||
"version": "3.13.0",
|
"version": "3.14.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "actions.js",
|
"main": "actions.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user