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

Method _touchParticle

external/.scrollLibs.js:17391–17397  ·  view source on GitHub ↗
(cuePathArray)

Source from the content-addressed store, hash-verified

17389 return this
17390 }
17391 _touchParticle(cuePathArray) {
17392 let contextParticle = this
17393 cuePathArray.forEach(cue => {
17394 contextParticle = contextParticle.getParticle(cue) || contextParticle.appendLine(cue)
17395 })
17396 return contextParticle
17397 }
17398 _touchParticleByString(str) {
17399 str = str.replace(this.particleBreakSymbolRegex, "") // todo: do we want to do this sanitization?
17400 return this._touchParticle(str.split(this.atomBreakSymbol))

Callers 1

Calls 3

forEachMethod · 0.80
appendLineMethod · 0.80
getParticleMethod · 0.45

Tested by

no test coverage detected