From cad37e08692f1ba8f53174682ad6d0be77602b92 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Tue, 6 Aug 2019 16:07:01 +0200
Subject: [PATCH] Use defineCustomElement()

---
 packages/notification/src/vpu-notification-demo.js | 3 ++-
 packages/notification/src/vpu-notification.js      | 5 +++--
 packages/notification/vendor/common                | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/packages/notification/src/vpu-notification-demo.js b/packages/notification/src/vpu-notification-demo.js
index dfece94b..31c4c0d3 100644
--- a/packages/notification/src/vpu-notification-demo.js
+++ b/packages/notification/src/vpu-notification-demo.js
@@ -2,6 +2,7 @@ import {i18n} from './i18n';
 import {send as notify} from './notification';
 import {html, LitElement} from 'lit-element';
 import './vpu-notification';
+import commonUtils from 'vpu-common/utils';
 
 class NotificationDemo extends LitElement {
     constructor() {
@@ -58,4 +59,4 @@ class NotificationDemo extends LitElement {
     }
 }
 
-customElements.define('vpu-notification-demo', NotificationDemo);
+commonUtils.defineCustomElement('vpu-notification-demo', NotificationDemo);
diff --git a/packages/notification/src/vpu-notification.js b/packages/notification/src/vpu-notification.js
index c34d09eb..e95fe4c9 100644
--- a/packages/notification/src/vpu-notification.js
+++ b/packages/notification/src/vpu-notification.js
@@ -1,7 +1,8 @@
 import {i18n} from './i18n';
 import utils from './utils'
 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
@@ -85,4 +86,4 @@ class VPUNotification extends VPULitElement {
     }
 }
 
-customElements.define('vpu-notification', VPUNotification);
+commonUtils.defineCustomElement('vpu-notification', VPUNotification);
diff --git a/packages/notification/vendor/common b/packages/notification/vendor/common
index 45e52fbe..68e0a4f1 160000
--- a/packages/notification/vendor/common
+++ b/packages/notification/vendor/common
@@ -1 +1 @@
-Subproject commit 45e52fbec09bf05c7e287703fc78b3040af69ac7
+Subproject commit 68e0a4f1f1a3ef6e05aca5216bf8684578ec2229
-- 
GitLab