mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Allow actions to have an argument
This commit is contained in:
parent
49fe13f22f
commit
3fcacd8339
@ -12,9 +12,9 @@ RED.actions = (function() {
|
|||||||
function getAction(name) {
|
function getAction(name) {
|
||||||
return actions[name];
|
return actions[name];
|
||||||
}
|
}
|
||||||
function invokeAction(name) {
|
function invokeAction(name,args) {
|
||||||
if (actions.hasOwnProperty(name)) {
|
if (actions.hasOwnProperty(name)) {
|
||||||
actions[name]();
|
actions[name](args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function listActions() {
|
function listActions() {
|
||||||
|
Loading…
Reference in New Issue
Block a user