mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add scope to status node
This commit is contained in:
parent
40fe0f3239
commit
1d73c86cb2
@ -20,6 +20,7 @@ module.exports = function(RED) {
|
|||||||
function StatusNode(n) {
|
function StatusNode(n) {
|
||||||
RED.nodes.createNode(this,n);
|
RED.nodes.createNode(this,n);
|
||||||
var node = this;
|
var node = this;
|
||||||
|
this.scope = n.scope;
|
||||||
this.on("input", function(msg) {
|
this.on("input", function(msg) {
|
||||||
this.send(msg);
|
this.send(msg);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user