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... // 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)

View File

@ -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": {