mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 18:30:10 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d9c819025d
commit
bd69813365
13
actions.js
13
actions.js
@ -1094,17 +1094,18 @@ module.MetaActions = {
|
|||||||
|
|
||||||
// go up the proto chain...
|
// go up the proto chain...
|
||||||
while(cur.__proto__ != null){
|
while(cur.__proto__ != null){
|
||||||
if(cur[action] != null){
|
var c = cur[action]
|
||||||
|
if(c != null){
|
||||||
// attribute of action...
|
// attribute of action...
|
||||||
if(cur[action][attr] !== undefined){
|
if(c[attr] !== undefined){
|
||||||
return cur[action][attr]
|
return c[attr]
|
||||||
|
|
||||||
// attribute of action function...
|
// attribute of action function...
|
||||||
} else if(cur[action].func && cur[action].func[attr] !== undefined){
|
} else if(c.func && c.func[attr] !== undefined){
|
||||||
return cur[action].func[attr]
|
return c.func[attr]
|
||||||
|
|
||||||
// alias -> look in the target action...
|
// alias -> look in the target action...
|
||||||
} else if(cur[action] instanceof Alias){
|
} else if(c instanceof Alias){
|
||||||
var res = this.getActionAttr(
|
var res = this.getActionAttr(
|
||||||
this.parseStringAction(cur[action].alias).action,
|
this.parseStringAction(cur[action].alias).action,
|
||||||
attr)
|
attr)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-actions",
|
"name": "ig-actions",
|
||||||
"version": "3.19.0",
|
"version": "3.19.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "actions.js",
|
"main": "actions.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user