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

Add unsubscribing attributes on disconnectedCallback()

Uses subscribe attribute
parent 04a40f37
No related branches found
No related tags found
No related merge requests found
Pipeline #16477 passed
......@@ -172,6 +172,13 @@ export class AdapterLitElement extends LitElement {
}
}
disconnectedCallback() {
const attrs = this.subscribe.split(',');
attrs.forEach(element => this.unSubscribeProviderFor(element));
super.disconnectedCallback();
}
subscribeProviderFor(element) {
console.log('AdapterLitElement(' + this.tagName + ') subscribeProviderFor( ' + element + ' )');
const pair = element.trim().split(':');
......
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