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

Method setContent

external/.scrollLibs.js:17063–17074  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

17061 return this._clearSubparticles()
17062 }
17063 setContent(content) {
17064 if (content === this.content) return this
17065 const newArray = [this.cue]
17066 if (content !== undefined) {
17067 content = content.toString()
17068 if (content.match(this.particleBreakSymbol)) return this.setContentWithSubparticles(content)
17069 newArray.push(content)
17070 }
17071 this._setLine(newArray.join(this.atomBreakSymbol))
17072 this._updateLineModifiedTimeAndTriggerEvent()
17073 return this
17074 }
17075 prependSibling(line, subparticles) {
17076 return this.parent.insertLineAndSubparticles(line, subparticles, this.index)
17077 }

Callers 9

extendMethod · 0.80
setPropertyIfMissingMethod · 0.80
setPropertiesMethod · 0.80
setWindowTitleMethod · 0.80
toggleMethod · 0.80
.leaflet.jsFile · 0.80

Calls 5

_setLineMethod · 0.95
toStringMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected