fix: supper.connectedCallback doesn't exist
This commit is contained in:
parent
1172247693
commit
157e9ed8cb
1 changed files with 0 additions and 6 deletions
|
@ -23,10 +23,6 @@
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
export class WebComponent extends HTMLElement {
|
export class WebComponent extends HTMLElement {
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type Array<string>
|
* @type Array<string>
|
||||||
*/
|
*/
|
||||||
|
@ -68,14 +64,12 @@ export class WebComponent extends HTMLElement {
|
||||||
onChanges(changes) {}
|
onChanges(changes) {}
|
||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
super.connectedCallback();
|
|
||||||
this.onInit();
|
this.onInit();
|
||||||
this.render();
|
this.render();
|
||||||
this.afterViewInit();
|
this.afterViewInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnectedCallback() {
|
disconnectedCallback() {
|
||||||
super.disconnectedCallback();
|
|
||||||
this.onDestroy();
|
this.onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue