xmpp.chapril.org-conversejs/src/components/element.js
2020-09-27 10:31:53 +02:00

22 lines
435 B
JavaScript

import { LitElement } from 'lit-element';
import { Events } from '@converse/skeletor/src/events.js';
export class CustomElement extends LitElement {
constructor () {
super();
Object.assign(this, Events);
}
createRenderRoot () {
// Render without the shadow DOM
return this;
}
disconnectedCallback () {
super.disconnectedCallback();
this.stopListening();
}
}