Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
prushforth committed Dec 13, 2024
1 parent d5a356b commit c0b4955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class BaseLayerElement extends HTMLElement {
if (!this._changeHandler) {
// Define and bind the change handler once
this._changeHandler = () => {
// TODO figure out how to propagate this correctly, cause there's no
// TODO figure out how to propagate this correctly, cause there's no
// disabled api per se.
this.disabled = !this._mql.matches;
};
Expand Down Expand Up @@ -192,7 +192,7 @@ export class BaseLayerElement extends HTMLElement {
delete this._fetchError;
this.shadowRoot.innerHTML = '';
if (this.src) this.innerHTML = '';

if (this._mql) {
if (this._changeHandler) {
this._mql.removeEventListener('change', this._changeHandler);
Expand Down Expand Up @@ -221,7 +221,7 @@ export class BaseLayerElement extends HTMLElement {
this._createLayerControlHTML = createLayerControlHTML.bind(this);
const doConnected = this._onAdd.bind(this);
const doRemove = this._onRemove.bind(this);
const registerMediaQuery = this._registerMediaQuery(this);
const registerMediaQuery = this._registerMediaQuery.bind(this);
let mq = this.media;
this.parentElement
.whenReady()
Expand Down

0 comments on commit c0b4955

Please sign in to comment.