Skip to content
Snippets Groups Projects
Commit cad37e08 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Use defineCustomElement()

parent f6c54994
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ import {i18n} from './i18n'; ...@@ -2,6 +2,7 @@ import {i18n} from './i18n';
import {send as notify} from './notification'; import {send as notify} from './notification';
import {html, LitElement} from 'lit-element'; import {html, LitElement} from 'lit-element';
import './vpu-notification'; import './vpu-notification';
import commonUtils from 'vpu-common/utils';
class NotificationDemo extends LitElement { class NotificationDemo extends LitElement {
constructor() { constructor() {
...@@ -58,4 +59,4 @@ class NotificationDemo extends LitElement { ...@@ -58,4 +59,4 @@ class NotificationDemo extends LitElement {
} }
} }
customElements.define('vpu-notification-demo', NotificationDemo); commonUtils.defineCustomElement('vpu-notification-demo', NotificationDemo);
import {i18n} from './i18n'; import {i18n} from './i18n';
import utils from './utils' import utils from './utils'
import {html} from 'lit-element'; import {html} from 'lit-element';
import VPULitElement from 'vpu-common/vpu-lit-element' import VPULitElement from 'vpu-common/vpu-lit-element';
import commonUtils from 'vpu-common/utils';
/** /**
* Notification web component * Notification web component
...@@ -85,4 +86,4 @@ class VPUNotification extends VPULitElement { ...@@ -85,4 +86,4 @@ class VPUNotification extends VPULitElement {
} }
} }
customElements.define('vpu-notification', VPUNotification); commonUtils.defineCustomElement('vpu-notification', VPUNotification);
common @ 68e0a4f1
Subproject commit 45e52fbec09bf05c7e287703fc78b3040af69ac7 Subproject commit 68e0a4f1f1a3ef6e05aca5216bf8684578ec2229
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment