Remove unnecessary node parameter _setupClass
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user