mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-28 18:00:11 +00:00
added .getSourceTags(..)
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2da1b17fb9
commit
6ec29a8c6f
@ -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
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-actions",
|
||||
"version": "3.0.1",
|
||||
"version": "3.0.2",
|
||||
"description": "",
|
||||
"main": "actions.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user