mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Throw an error if a Function node adds an input event listener
This commit is contained in:
@@ -83,6 +83,9 @@ module.exports = function(RED) {
|
||||
sendResults(node, id, msgs);
|
||||
},
|
||||
on: function() {
|
||||
if (arguments[0] === "input") {
|
||||
throw new Error(RED._("function.error.inputListener"));
|
||||
}
|
||||
node.on.apply(node, arguments);
|
||||
},
|
||||
status: function() {
|
||||
|
Reference in New Issue
Block a user