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

One console.log too many

This commit is contained in:
Nicholas O'Leary 2013-10-13 20:29:29 +01:00
parent 32fcd12919
commit bbe37dd944

View File

@ -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 {