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

Use the new defineCustomElement()

parent 3a33bf37
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ import './vpu-kb-wpe-view.js'; ...@@ -3,6 +3,7 @@ import './vpu-kb-wpe-view.js';
import utils from './utils.js'; import utils from './utils.js';
import {i18n} from './i18n'; import {i18n} from './i18n';
import {html, LitElement} from 'lit-element'; import {html, LitElement} from 'lit-element';
import commonUtils from 'vpu-common/utils';
class KnowledgeBaseWebPageElementViewDemo extends LitElement { class KnowledgeBaseWebPageElementViewDemo extends LitElement {
constructor() { constructor() {
...@@ -65,4 +66,4 @@ class KnowledgeBaseWebPageElementViewDemo extends LitElement { ...@@ -65,4 +66,4 @@ class KnowledgeBaseWebPageElementViewDemo extends LitElement {
} }
} }
customElements.define('vpu-knowledge-base-web-page-element-view-demo', KnowledgeBaseWebPageElementViewDemo); commonUtils.defineCustomElement('vpu-knowledge-base-web-page-element-view-demo', KnowledgeBaseWebPageElementViewDemo);
...@@ -154,4 +154,4 @@ class VPUKnowledgeBaseWebPageElementView extends VPULitElement { ...@@ -154,4 +154,4 @@ class VPUKnowledgeBaseWebPageElementView extends VPULitElement {
} }
} }
customElements.define('vpu-knowledge-base-web-page-element-view', VPUKnowledgeBaseWebPageElementView); commonUtils.defineCustomElement('vpu-knowledge-base-web-page-element-view', VPUKnowledgeBaseWebPageElementView);
auth @ 0daf533b
Subproject commit c87402caad63e6e41359df67857fab394c9d6cd5 Subproject commit 0daf533bbdca1bcb5b8f5d16bb258b86bdb59242
common @ 68e0a4f1
Subproject commit 7c9e79d20c319bb6a6154c1724f20eb2f67cfbeb 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