Cleanup any listeners and media query instances!
This commit is contained in:
parent
482482fa09
commit
08ee579438
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tp/tp-media-query",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "",
|
||||
"main": "tp-media-query.js",
|
||||
"scripts": {
|
||||
|
@ -33,6 +33,11 @@ class TpMediaQuery extends LitElement {
|
||||
this.checkQuery();
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
super.disconnectedCallback();
|
||||
this._remove();
|
||||
}
|
||||
|
||||
checkQuery() {
|
||||
this._remove();
|
||||
var query = this.query;
|
||||
|
Loading…
x
Reference in New Issue
Block a user