Skip to content

Commit ea7b16b

Browse files
committed
Add info property to groups
1 parent 4ee4726 commit ea7b16b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/NRGroup.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ class NRGroup extends NRContainer {
2222
delete config.g;
2323

2424
this.style = config.style;
25+
this.info = config.info;
26+
2527
delete config.w;
2628
delete config.h;
2729
delete config.style;
30+
delete config.info;
2831
this._nodes = config.nodes;
2932
delete config.nodes;
3033
}
@@ -50,6 +53,9 @@ class NRGroup extends NRContainer {
5053
if (this.style) {
5154
obj.style = this.style;
5255
}
56+
if (this.info !== undefined) {
57+
obj.info = this.info;
58+
}
5359
obj.nodes = Array.from(this.nodes.keys())
5460
return obj;
5561
}

0 commit comments

Comments
 (0)