minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-03-25 12:23:36 +03:00
parent d9c819025d
commit bd69813365
2 changed files with 8 additions and 7 deletions

View File

@ -1094,17 +1094,18 @@ module.MetaActions = {
// go up the proto chain...
while(cur.__proto__ != null){
if(cur[action] != null){
var c = cur[action]
if(c != null){
// attribute of action...
if(cur[action][attr] !== undefined){
return cur[action][attr]
if(c[attr] !== undefined){
return c[attr]
// attribute of action function...
} else if(cur[action].func && cur[action].func[attr] !== undefined){
return cur[action].func[attr]
} else if(c.func && c.func[attr] !== undefined){
return c.func[attr]
// alias -> look in the target action...
} else if(cur[action] instanceof Alias){
} else if(c instanceof Alias){
var res = this.getActionAttr(
this.parseStringAction(cur[action].alias).action,
attr)

View File

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