(name, oldValue, newValue)
| 13 | this.setAttribute('media', val); |
| 14 | } |
| 15 | async attributeChangedCallback(name, oldValue, newValue) { |
| 16 | if (this.#hasConnected /* jshint ignore:line */) { |
| 17 | switch (name) { |
| 18 | case 'media': |
| 19 | if (oldValue !== newValue) { |
| 20 | await this._registerMediaQuery(newValue); |
| 21 | } |
| 22 | break; |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | async _registerMediaQuery(mq) { |
| 27 | if (!this._changeHandler) { |
| 28 | // Define and bind the change handler once |
nothing calls this directly
no test coverage detected