From 6ec29a8c6ff5ce737285bd6104138d04191121f4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 25 Jan 2017 23:26:58 +0300 Subject: [PATCH] added .getSourceTags(..) Signed-off-by: Alex A. Naanou --- actions.js | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/actions.js b/actions.js index f94ba2f..2a27e84 100755 --- a/actions.js +++ b/actions.js @@ -1325,6 +1325,15 @@ module.MetaActions = { return o }, + getSourceTags: function(name){ + return this.getHandlers(name) + .map(function(a){ + return a.pre ? (a.pre.source_tag || a.pre.event_tag) + : a.post ? (a.post.source_tag || a.post.event_tag) + : null + }) + }, + // doc generators... // // XXX would be nice to make these prop of the action itself but I diff --git a/package.json b/package.json index f496668..13d349d 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.0.1", + "version": "3.0.2", "description": "", "main": "actions.js", "scripts": {