Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CurrentTimeText extends HTMLElement {
- ...
- connectedCallback() {
- // call parents callback
- this.parentNode.childReady(this);
- // or
- this.parentNode.dispatchEvent(new Event('childReady'));
- }
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement