Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default (Base = HTMLElement) => class extends Base {
- connectedCallback () {
- super.connectedCallback();
- if (this.childrenChangedCallback) {
- const mo = new MutationObserver(this.childrenChangedCallback.bind(this));
- mo.observe(this, { childList: true });
- this.childrenChangedCallback();
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement