(source, target)
| 84 | } |
| 85 | |
| 86 | function copyAttributes(source, target) { |
| 87 | return Array.from(source.attributes).forEach((attribute) => { |
| 88 | if ( |
| 89 | attribute.nodeName !== 'media' && |
| 90 | attribute.nodeName !== 'data-testid' |
| 91 | ) { |
| 92 | target.setAttribute(attribute.nodeName, attribute.nodeValue); |
| 93 | } |
| 94 | }); |
| 95 | } |
| 96 | |
| 97 | // use observer to monitor the changes in mapStyle textContent |
| 98 | this._observer = new MutationObserver(() => { |
nothing calls this directly
no test coverage detected