Skip to content
Snippets Groups Projects
Unverified Commit 69ecf513 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add missing dbp-set-property migrations

parent 0a69d005
No related branches found
No related tags found
No related merge requests found
Pipeline #16527 passed
...@@ -109,12 +109,12 @@ export class AdapterLitElement extends LitElement { ...@@ -109,12 +109,12 @@ export class AdapterLitElement extends LitElement {
}, false); }, false);
// listen to property changes // listen to property changes
this.addEventListener('set-property', function (e) { this.addEventListener('dbp-set-property', function (e) {
const name = e.detail.name; const name = e.detail.name;
const value = e.detail.value; const value = e.detail.value;
if (that.hasProperty(name) || that.root) { if (that.hasProperty(name) || that.root) {
console.log('AdapterLitElementProvider(' + that.tagName + ') eventListener("set-property",..) name "' + name + '" found.'); console.log('AdapterLitElementProvider(' + that.tagName + ') eventListener("dbp-set-property",..) name "' + name + '" found.');
that.setProperty(name, value); that.setProperty(name, value);
that.callbackStore.forEach(item => { that.callbackStore.forEach(item => {
...@@ -295,7 +295,7 @@ export class AdapterLitElement extends LitElement { ...@@ -295,7 +295,7 @@ export class AdapterLitElement extends LitElement {
} }
/** /**
* Send a set-property event to the provider components * Send a dbp-set-property event to the provider components
* *
* @param name * @param name
* @param value * @param value
......
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