mirror of https://github.com/node-red/node-red.git
One console.log too many
parent
32fcd12919
commit
bbe37dd944
nodes/logic
|
@ -39,12 +39,6 @@ function SwitchNode(n) {
|
||||||
this.rules = n.rules;
|
this.rules = n.rules;
|
||||||
this.property = n.property;
|
this.property = n.property;
|
||||||
|
|
||||||
this.ruleFuncs = [];
|
|
||||||
|
|
||||||
for (var i=0;i<this.rules.length;i+=1) {
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
var node = this;
|
var node = this;
|
||||||
|
|
||||||
this.on('input',function(msg) {
|
this.on('input',function(msg) {
|
||||||
|
@ -52,7 +46,6 @@ function SwitchNode(n) {
|
||||||
|
|
||||||
for (var i=0;i<node.rules.length;i+=1) {
|
for (var i=0;i<node.rules.length;i+=1) {
|
||||||
var rule = node.rules[i];
|
var rule = node.rules[i];
|
||||||
console.log(rule);
|
|
||||||
if (operators[rule.t](msg[node.property],rule.v,rule.v2)) {
|
if (operators[rule.t](msg[node.property],rule.v,rule.v2)) {
|
||||||
onward.push(msg);
|
onward.push(msg);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue