Skip to content
Snippets Groups Projects
Commit 0643e86a authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon:
Browse files

Remove event listener for "inherit"

Only subscription are supported (no single calls)
parent fdca4170
No related branches found
No related tags found
1 merge request!28Observer test
Pipeline #15680 passed
......@@ -11,14 +11,6 @@ export class Provider extends HTMLElement {
console.log('Provider(' + this.id() + ') connectedCallback()');
const that = this;
this.addEventListener('inherit', function (e) {
if (that[e.detail.name] || that.root) {
console.log('Provider(' + that.id() + ') eventListener("inherit",..) name "' + e.detail.name + '" found.');
//console.dir(e.detail);
e.detail.callback(that[e.detail.name]);
e.stopPropagation();
}
}, false);
this.addEventListener('subscribe', function (e) {
const name = e.detail.name;
......
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