added .getSourceTags(..)

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-01-25 23:26:58 +03:00
parent 2da1b17fb9
commit 6ec29a8c6f
2 changed files with 10 additions and 1 deletions

View File

@ -1325,6 +1325,15 @@ module.MetaActions = {
return o 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... // doc generators...
// //
// XXX would be nice to make these prop of the action itself but I // XXX would be nice to make these prop of the action itself but I

View File

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