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",
|
"name": "@tp/tp-media-query",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-media-query.js",
|
"main": "tp-media-query.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -33,6 +33,11 @@ class TpMediaQuery extends LitElement {
|
|||||||
this.checkQuery();
|
this.checkQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disconnectedCallback() {
|
||||||
|
super.disconnectedCallback();
|
||||||
|
this._remove();
|
||||||
|
}
|
||||||
|
|
||||||
checkQuery() {
|
checkQuery() {
|
||||||
this._remove();
|
this._remove();
|
||||||
var query = this.query;
|
var query = this.query;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user