Browse Source

add missing decimal definitions

bug-decimal-undefined
John Robinson 4 years ago
parent
commit
cfdb0ced68
No known key found for this signature in database
3 changed files with 3 additions and 0 deletions
  1. +1
    -0
      boolean-logic-ultimate/BlinkerUltimate.js
  2. +1
    -0
      boolean-logic-ultimate/FilterUltimate.js
  3. +1
    -0
      boolean-logic-ultimate/InterruptFlowUltimate.js

+ 1
- 0
boolean-logic-ultimate/BlinkerUltimate.js View File

RED.nodes.createNode(this, config); RED.nodes.createNode(this, config);
this.config = config; this.config = config;
var node = this; var node = this;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
setNodeStatus({ fill: "grey", shape: "ring", text: "|| Off" }); setNodeStatus({ fill: "grey", shape: "ring", text: "|| Off" });
node.tBlinker = null;// Timer Blinker node.tBlinker = null;// Timer Blinker
node.blinkfrequency = typeof config.blinkfrequency === "undefined" ? 500 : config.blinkfrequency; node.blinkfrequency = typeof config.blinkfrequency === "undefined" ? 500 : config.blinkfrequency;

+ 1
- 0
boolean-logic-ultimate/FilterUltimate.js View File

RED.nodes.createNode(this,config); RED.nodes.createNode(this,config);
this.config = config; this.config = config;
var node = this; var node = this;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
setNodeStatus( {fill: "grey" ,shape: "dot" ,text: "Waiting"}); setNodeStatus( {fill: "grey" ,shape: "dot" ,text: "Waiting"});
this.on('input', function (msg) { this.on('input', function (msg) {
var sTopic = node.config.name; var sTopic = node.config.name;

+ 1
- 0
boolean-logic-ultimate/InterruptFlowUltimate.js View File

RED.nodes.createNode(this, config); RED.nodes.createNode(this, config);
this.config = config; this.config = config;
var node = this; var node = this;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
setNodeStatus({ fill: "green", shape: "ring", text: "-> pass" }); setNodeStatus({ fill: "green", shape: "ring", text: "-> pass" });
node.bInviaMessaggio = true; // Send the message or not node.bInviaMessaggio = true; // Send the message or not
node.currentMsg = {}; // Stores current payload node.currentMsg = {}; // Stores current payload

Loading…
Cancel
Save