mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Allow actions to have an argument
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user