mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
tests for defaults in switch, change and range nodes.
This commit is contained in:
@@ -35,10 +35,10 @@ module.exports = function(RED) {
|
||||
|
||||
function SwitchNode(n) {
|
||||
RED.nodes.createNode(this, n);
|
||||
this.rules = n.rules;
|
||||
this.rules = n.rules || [];
|
||||
this.property = n.property;
|
||||
this.checkall = n.checkall || "true";
|
||||
var propertyParts = n.property.split(".");
|
||||
var propertyParts = (n.property || "payload").split(".");
|
||||
var node = this;
|
||||
|
||||
for (var i=0; i<this.rules.length; i+=1) {
|
||||
|
Reference in New Issue
Block a user