MCPcopy Create free account
hub / github.com/breck7/scroll / unmount

Method unmount

external/.scrollLibs.js:24524–24535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24522 return this.addStumpCodeMessageToLog(pre)
24523 }
24524 unmount() {
24525 if (
24526 !this.isMounted() // todo: why do we need this check?
24527 )
24528 return undefined
24529 this._getChildParticleComponents().forEach(subparticle => subparticle.unmount())
24530 this.particleComponentWillUnmount()
24531 this._removeCss()
24532 this._removeHtml()
24533 delete this._lastRenderedTime
24534 this.particleComponentDidUnmount()
24535 }
24536 _removeHtml() {
24537 this._htmlStumpParticle.removeStumpParticle()
24538 delete this._htmlStumpParticle

Callers 1

unmountAndDestroyMethod · 0.95

Calls 7

isMountedMethod · 0.95
_removeCssMethod · 0.95
_removeHtmlMethod · 0.95
forEachMethod · 0.80

Tested by

no test coverage detected