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
|
* start HTMLElement callbacks
|
||||||
*/
|
*/
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this.#initializeProps();
|
||||||
|
}
|
||||||
|
|
||||||
static get observedAttributes() {
|
static get observedAttributes() {
|
||||||
return this.properties;
|
return this.properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
this.#initializeProps();
|
|
||||||
this.onInit();
|
this.onInit();
|
||||||
this.render();
|
this.render();
|
||||||
this.afterViewInit();
|
this.afterViewInit();
|
||||||
|
|
Loading…
Reference in a new issue