Created
July 23, 2017 06:43
-
-
Save kyuwoo-choi/c1fcdc728051d8c77ac8ae955133dc8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CurrentTimeText extends HTMLElement { | |
... | |
connectedCallback() { | |
// call parents callback | |
this.parentNode.childReady(this); | |
// or | |
this.parentNode.dispatchEvent(new Event('childReady')); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment