From bd6981336519efaa79f6fb63d4882d2ed4bbdac9 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 25 Mar 2018 12:23:36 +0300 Subject: [PATCH] minor tweak... Signed-off-by: Alex A. Naanou --- actions.js | 13 +++++++------ package.json | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/actions.js b/actions.js index 8d99624..7e0caf6 100755 --- a/actions.js +++ b/actions.js @@ -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) diff --git a/package.json b/package.json index ba5159c..4cb2598 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.19.0", + "version": "3.19.1", "description": "", "main": "actions.js", "scripts": {