Commit 2cb1af3d authored by JC Brand's avatar JC Brand

Assign the Skeletor Events API to CustomElement

So that components can use `listenTo`
parent 4f209e9f
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();
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment