2020-02-10 11:23:55 +01:00
|
|
|
import { LitElement } from 'lit-element';
|
2020-06-26 14:54:36 +02:00
|
|
|
import { Events } from '@converse/skeletor/src/events.js';
|
|
|
|
|
2020-02-10 11:23:55 +01:00
|
|
|
|
|
|
|
export class CustomElement extends LitElement {
|
|
|
|
|
2020-06-26 14:54:36 +02:00
|
|
|
constructor () {
|
|
|
|
super();
|
|
|
|
Object.assign(this, Events);
|
|
|
|
}
|
|
|
|
|
2020-02-10 11:23:55 +01:00
|
|
|
createRenderRoot () {
|
|
|
|
// Render without the shadow DOM
|
|
|
|
return this;
|
|
|
|
}
|
2020-06-26 14:54:36 +02:00
|
|
|
|
|
|
|
disconnectedCallback () {
|
2020-09-26 21:42:42 +02:00
|
|
|
super.disconnectedCallback();
|
2020-06-26 14:54:36 +02:00
|
|
|
this.stopListening();
|
|
|
|
}
|
2020-02-10 11:23:55 +01:00
|
|
|
}
|