mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
2afe474ec8
commit
ad1f967a8d
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
//Simple node to introduce a pause into a flow
|
//Simple node to introduce a pause into a flow
|
||||||
var RED = require(process.env.NODE_RED_HOME+"/red/red");
|
var RED = require(process.env.NODE_RED_HOME+"/red/red");
|
||||||
|
var node;
|
||||||
|
|
||||||
function random() {
|
function random() {
|
||||||
var wait = node.randomFirst + (node.diff * Math.random());
|
var wait = node.randomFirst + (node.diff * Math.random());
|
||||||
@ -80,7 +81,7 @@ function DelayNode(n) {
|
|||||||
this.buffer = [];
|
this.buffer = [];
|
||||||
this.intervalID = -1;
|
this.intervalID = -1;
|
||||||
this.randomID = -1;
|
this.randomID = -1;
|
||||||
var node = this;
|
node = this;
|
||||||
|
|
||||||
if (this.pauseType === "delay") {
|
if (this.pauseType === "delay") {
|
||||||
this.on("input", function(msg) {
|
this.on("input", function(msg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user