From c23818c10805bf60cdd7386c68e2ed7bc0e6c0ac Mon Sep 17 00:00:00 2001 From: "p.vanderwilt" Date: Fri, 4 Jul 2025 12:16:08 +0200 Subject: [PATCH] Remove unnecessary node parameter _setupClass --- src/nodeClass.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nodeClass.js b/src/nodeClass.js index ad11f69..4cbb4bf 100644 --- a/src/nodeClass.js +++ b/src/nodeClass.js @@ -15,7 +15,7 @@ class nodeClass { this.RED = RED; this.name = nameOfNode; - this._setupClass(uiConfig, this.node); + this._setupClass(uiConfig); this._attachInputHandler(); @@ -56,7 +56,7 @@ class nodeClass { }); } - _setupClass(uiConfig, node) { + _setupClass(uiConfig) { let new_reactor; switch (uiConfig.reactor_type) { @@ -110,7 +110,7 @@ class nodeClass { console.warn("Unknown reactor type: " + uiConfig.reactor_type); } - node.reactor = new_reactor; // protect from reassignment + this.reactor = new_reactor; // protect from reassignment } }