Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. export default (Base = HTMLElement) => class extends Base {
  2. connectedCallback () {
  3. super.connectedCallback();
  4. if (this.childrenChangedCallback) {
  5. const mo = new MutationObserver(this.childrenChangedCallback.bind(this));
  6. mo.observe(this, { childList: true });
  7. this.childrenChangedCallback();
  8. }
  9. }
  10. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement