From 6b20315664c4f952ac9fc9976409b66c1413dba4 Mon Sep 17 00:00:00 2001 From: Evgeny Metelkin Date: Mon, 24 Jun 2024 17:38:39 +0300 Subject: [PATCH] className --- src/core/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/component.js b/src/core/component.js index f8ea5df6..f193e48f 100644 --- a/src/core/component.js +++ b/src/core/component.js @@ -237,7 +237,7 @@ class Component { /* recursively create requirements from _requirements, currently it is not optimal */ static requirements(){ - if (this.name === 'Component') { + if (this.prototype.className === 'Component') { return this._requirements; } else if (this.hasOwnProperty('_requirements')) { let proto = Object.getPrototypeOf(this);