Skip to content

Commit

Permalink
className
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jun 24, 2024
1 parent 75ea155 commit 6b20315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b20315

Please sign in to comment.