xmpp.chapril.org-conversejs/src/components/element.js
JC Brand 2cb1af3dea Assign the Skeletor Events API to CustomElement
So that components can use `listenTo`
2020-07-01 09:25:14 +02:00

21 lines
397 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 () {
this.stopListening();
}
}