From c37971e56809fc3c0b65b4121cef41791ff473ed Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Tue, 6 Aug 2019 15:58:04 +0200 Subject: [PATCH] Use the new defineCustomElement() --- packages/knowledge-base-web-page-element-view/src/demo.js | 3 ++- .../src/vpu-kb-wpe-view.js | 2 +- packages/knowledge-base-web-page-element-view/vendor/auth | 2 +- packages/knowledge-base-web-page-element-view/vendor/common | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/knowledge-base-web-page-element-view/src/demo.js b/packages/knowledge-base-web-page-element-view/src/demo.js index f0cd2d5c..64c79e96 100644 --- a/packages/knowledge-base-web-page-element-view/src/demo.js +++ b/packages/knowledge-base-web-page-element-view/src/demo.js @@ -3,6 +3,7 @@ import './vpu-kb-wpe-view.js'; import utils from './utils.js'; import {i18n} from './i18n'; import {html, LitElement} from 'lit-element'; +import commonUtils from 'vpu-common/utils'; class KnowledgeBaseWebPageElementViewDemo extends LitElement { constructor() { @@ -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); diff --git a/packages/knowledge-base-web-page-element-view/src/vpu-kb-wpe-view.js b/packages/knowledge-base-web-page-element-view/src/vpu-kb-wpe-view.js index 15bb3afc..fd000f7b 100644 --- a/packages/knowledge-base-web-page-element-view/src/vpu-kb-wpe-view.js +++ b/packages/knowledge-base-web-page-element-view/src/vpu-kb-wpe-view.js @@ -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); diff --git a/packages/knowledge-base-web-page-element-view/vendor/auth b/packages/knowledge-base-web-page-element-view/vendor/auth index c87402ca..0daf533b 160000 --- a/packages/knowledge-base-web-page-element-view/vendor/auth +++ b/packages/knowledge-base-web-page-element-view/vendor/auth @@ -1 +1 @@ -Subproject commit c87402caad63e6e41359df67857fab394c9d6cd5 +Subproject commit 0daf533bbdca1bcb5b8f5d16bb258b86bdb59242 diff --git a/packages/knowledge-base-web-page-element-view/vendor/common b/packages/knowledge-base-web-page-element-view/vendor/common index 7c9e79d2..68e0a4f1 160000 --- a/packages/knowledge-base-web-page-element-view/vendor/common +++ b/packages/knowledge-base-web-page-element-view/vendor/common @@ -1 +1 @@ -Subproject commit 7c9e79d20c319bb6a6154c1724f20eb2f67cfbeb +Subproject commit 68e0a4f1f1a3ef6e05aca5216bf8684578ec2229 -- GitLab