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 } }