mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 18:30:10 +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
|
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
|
||||||
|
|||||||
@ -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": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user