mirror of https://github.com/node-red/node-red.git
Allow actions to have an argument
parent
49fe13f22f
commit
3fcacd8339
|
@ -12,9 +12,9 @@ RED.actions = (function() {
|
|||
function getAction(name) {
|
||||
return actions[name];
|
||||
}
|
||||
function invokeAction(name) {
|
||||
function invokeAction(name,args) {
|
||||
if (actions.hasOwnProperty(name)) {
|
||||
actions[name]();
|
||||
actions[name](args);
|
||||
}
|
||||
}
|
||||
function listActions() {
|
||||
|
|
Loading…
Reference in New Issue