Remove unnecessary node parameter _setupClass

This commit is contained in:
2025-07-04 12:16:08 +02:00
parent fee6881f1b
commit c23818c108

View File

@@ -15,7 +15,7 @@ class nodeClass {
this.RED = RED; this.RED = RED;
this.name = nameOfNode; this.name = nameOfNode;
this._setupClass(uiConfig, this.node); this._setupClass(uiConfig);
this._attachInputHandler(); this._attachInputHandler();
@@ -56,7 +56,7 @@ class nodeClass {
}); });
} }
_setupClass(uiConfig, node) { _setupClass(uiConfig) {
let new_reactor; let new_reactor;
switch (uiConfig.reactor_type) { switch (uiConfig.reactor_type) {
@@ -110,7 +110,7 @@ class nodeClass {
console.warn("Unknown reactor type: " + uiConfig.reactor_type); console.warn("Unknown reactor type: " + uiConfig.reactor_type);
} }
node.reactor = new_reactor; // protect from reassignment this.reactor = new_reactor; // protect from reassignment
} }
} }