Skip to content

Commit c82ae57

Browse files
committed
Add info to NRNode object
1 parent 5f49c48 commit c82ae57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/NRNode.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class NRNode extends NRObject {
4848

4949
this.wires = config.wires || [];
5050
this.outputCount = this.wires.length;
51+
this.info = config.info;
5152

5253
delete config.x;
5354
delete config.y;
@@ -58,6 +59,7 @@ class NRNode extends NRObject {
5859
delete config.inputLabels;
5960
delete config.outputLabels;
6061
delete config.icon;
62+
delete config.info;
6163

6264
this.inboundWires = [];
6365
this.outboundWires = [];
@@ -110,6 +112,9 @@ class NRNode extends NRObject {
110112
if (this.icon) {
111113
obj.icon = this.icon;
112114
}
115+
if (this.info) {
116+
obj.info = this.info;
117+
}
113118
return obj;
114119
}
115120

0 commit comments

Comments
 (0)