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

Use defineCustomElement()

parent 425606fd
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ import utils from './utils.js'; ...@@ -2,6 +2,7 @@ import utils from './utils.js';
import {i18n} from './i18n.js'; import {i18n} from './i18n.js';
import {html, LitElement} from 'lit-element'; import {html, LitElement} from 'lit-element';
import './person-select.js'; import './person-select.js';
import commonUtils from 'vpu-common/utils';
class PersonSelectDemo extends LitElement { class PersonSelectDemo extends LitElement {
constructor() { constructor() {
...@@ -51,4 +52,4 @@ class PersonSelectDemo extends LitElement { ...@@ -51,4 +52,4 @@ class PersonSelectDemo extends LitElement {
} }
} }
customElements.define('vpu-person-select-demo', PersonSelectDemo); commonUtils.defineCustomElement('vpu-person-select-demo', PersonSelectDemo);
...@@ -7,6 +7,7 @@ import JSONLD from 'vpu-common/jsonld'; ...@@ -7,6 +7,7 @@ import JSONLD from 'vpu-common/jsonld';
import {html} from 'lit-element'; import {html} from 'lit-element';
import {i18n} from './i18n.js'; import {i18n} from './i18n.js';
import VPULitElementJQuery from 'vpu-common/vpu-lit-element-jquery'; import VPULitElementJQuery from 'vpu-common/vpu-lit-element-jquery';
import commonUtils from 'vpu-common/utils';
select2(window, $); select2(window, $);
...@@ -163,4 +164,4 @@ class PersonSelect extends VPULitElementJQuery { ...@@ -163,4 +164,4 @@ class PersonSelect extends VPULitElementJQuery {
} }
} }
customElements.define('vpu-person-select', PersonSelect); commonUtils.defineCustomElement('vpu-person-select', PersonSelect);
auth @ 0daf533b
Subproject commit c87402caad63e6e41359df67857fab394c9d6cd5 Subproject commit 0daf533bbdca1bcb5b8f5d16bb258b86bdb59242
common @ 68e0a4f1
Subproject commit 08f98d949388649606fa5e5b08b750aeb24a4af7 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