| 341 | } |
| 342 | |
| 343 | disconnectedCallback(): void { |
| 344 | this._connected = false |
| 345 | nextTick(() => { |
| 346 | if (!this._connected) { |
| 347 | if (this._ob) { |
| 348 | this._ob.disconnect() |
| 349 | this._ob = null |
| 350 | } |
| 351 | class="cm">// unmount |
| 352 | this._app && this._app.unmount() |
| 353 | if (this._instance) this._instance.ce = undefined |
| 354 | this._app = this._instance = null |
| 355 | if (this._teleportTargets) { |
| 356 | this._teleportTargets.clear() |
| 357 | this._teleportTargets = undefined |
| 358 | } |
| 359 | } |
| 360 | }) |
| 361 | } |
| 362 | |
| 363 | private _processMutations(mutations: MutationRecord[]) { |
| 364 | for (const m of mutations) { |