Improve error message when a Combine is not properly initialized
This commit is contained in:
parent
79183bb9ab
commit
03a45b6077
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ export default class Combine extends BaseUIElement {
|
||||||
const el = document.createElement("span")
|
const el = document.createElement("span")
|
||||||
try {
|
try {
|
||||||
if(this.uiElements === undefined){
|
if(this.uiElements === undefined){
|
||||||
console.error("PANIC")
|
console.error("PANIC: this.uiElements is undefined. (This might indicate a constructor which did not call 'super'. The constructor name is", this.constructor/*Disable code quality: used for debugging*/.name+")")
|
||||||
}
|
}
|
||||||
for (const subEl of this.uiElements) {
|
for (const subEl of this.uiElements) {
|
||||||
if (subEl === undefined || subEl === null) {
|
if (subEl === undefined || subEl === null) {
|
||||||
|
|
Loading…
Reference in a new issue