diff --git a/actions.js b/actions.js index df7ae5d..b7ff092 100755 --- a/actions.js +++ b/actions.js @@ -601,6 +601,21 @@ module.MetaActions = { return this.actions.length }, + // Get action attribute... + // + getAttr: function(action, attr){ + var cur = this + + // go up the proto chain... + while(cur.__proto__ != null){ + //if(cur[action] != null && attr in cur[action]){ + if(cur[action] != null && cur[action][attr] !== undefined){ + return cur[action][attr] + } + cur = cur.__proto__ + } + }, + // Get action documentation... // getDoc: function(actions){ diff --git a/package.json b/package.json index 5ac0329..e0bf2e0 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "1.8.0", + "version": "1.9.0", "description": "", "main": "actions.js", "scripts": {