()
| 372 | } |
| 373 | } |
| 374 | async _enableLink() { |
| 375 | switch (this.rel.toLowerCase()) { |
| 376 | case 'tile': |
| 377 | case 'image': |
| 378 | case 'features': |
| 379 | case 'query': |
| 380 | this._initTemplateVars(); |
| 381 | await this._createTemplatedLink(); |
| 382 | this.getLayerEl()._validateDisabled(); |
| 383 | break; |
| 384 | case 'stylesheet': |
| 385 | this._createStylesheetLink(); |
| 386 | break; |
| 387 | } |
| 388 | } |
| 389 | async _registerMediaQuery(mq) { |
| 390 | if (!this._changeHandler) { |
| 391 | // Define and bind the change handler once |
no test coverage detected