1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

add rbe to missing payload compatible list.

This commit is contained in:
dceejay 2015-03-31 13:19:02 +01:00
parent 3896a82bd8
commit b112f03a64

View File

@ -25,6 +25,7 @@ module.exports = function(RED) {
var previous = null;
this.on("input",function(msg) {
if (msg.hasOwnProperty("payload")) {
if (this.func === "rbe") {
if (msg.payload != previous) {
previous = msg.payload;
@ -44,6 +45,7 @@ module.exports = function(RED) {
node.warn("no number found in payload");
}
}
} // ignore msg with no payload property.
});
}
RED.nodes.registerType("rbe",RbeNode);