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

Method _disconnect

src/map-style.js:107–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 });
106 }
107 _disconnect() {
108 if (this._observer) {
109 this._observer.disconnect();
110 }
111 if (this._stylesheetHost) {
112 if (this.styleElement) {
113 this.styleElement.remove();
114 delete this.styleElement;
115 }
116 }
117 }
118 async connectedCallback() {
119 /* jshint ignore:start */
120 this.#hasConnected = true;

Callers 2

_registerMediaQueryMethod · 0.95
disconnectedCallbackMethod · 0.95

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected