refactor: move initializeProp to constructor
This commit is contained in:
parent
7716348c9f
commit
29c26be58c
1 changed files with 5 additions and 1 deletions
|
@ -101,12 +101,16 @@ export class WebComponent extends HTMLElement {
|
|||
/**
|
||||
* start HTMLElement callbacks
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
this.#initializeProps();
|
||||
}
|
||||
|
||||
static get observedAttributes() {
|
||||
return this.properties;
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
this.#initializeProps();
|
||||
this.onInit();
|
||||
this.render();
|
||||
this.afterViewInit();
|
||||
|
|
Loading…
Reference in a new issue