MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / _bindMutationObserver

Method _bindMutationObserver

src/map-extent.js:291–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289 * _runMutationObserver
290 */
291 _bindMutationObserver() {
292 this._observer = new MutationObserver((mutationList) => {
293 for (let mutation of mutationList) {
294 // the attributes changes should be handled by attributeChangedCallback()
295 if (mutation.type === 'childList') {
296 this._runMutationObserver(mutation.addedNodes);
297 }
298 }
299 });
300 // childList observes immediate children only (not grandchildren etc)
301 this._observer.observe(this, {
302 childList: true
303 });
304 }
305 _runMutationObserver(elementsGroup) {
306 const _addMetaElement = (mapMeta) => {
307 this.whenReady().then(() => {

Callers 1

connectedCallbackMethod · 0.95

Calls 1

_runMutationObserverMethod · 0.95

Tested by

no test coverage detected