Allow for multiple parents
This commit is contained in:
@@ -11,6 +11,10 @@ class ChildRegistrationUtils {
|
|||||||
|
|
||||||
this.logger.debug(`Registering child: ${name} (${id}) as ${softwareType} at ${positionVsParent}`);
|
this.logger.debug(`Registering child: ${name} (${id}) as ${softwareType} at ${positionVsParent}`);
|
||||||
|
|
||||||
|
if (Array.isArray(child.parent)) {
|
||||||
|
child.parent.push(this.mainClass);
|
||||||
|
}
|
||||||
|
|
||||||
// Enhanced child setup
|
// Enhanced child setup
|
||||||
child.parent = this.mainClass;
|
child.parent = this.mainClass;
|
||||||
child.positionVsParent = positionVsParent;
|
child.positionVsParent = positionVsParent;
|
||||||
|
|||||||
Reference in New Issue
Block a user