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

Method _rename

external/.scrollLibs.js:17223–17230  ·  view source on GitHub ↗
(oldCue, newCue)

Source from the content-addressed store, hash-verified

17221 return this
17222 }
17223 _rename(oldCue, newCue) {
17224 const index = this.indexOf(oldCue)
17225 if (index === -1) return this
17226 const particle = this._getSubparticlesArray()[index]
17227 particle.setCue(newCue)
17228 this._clearCueIndex()
17229 return this
17230 }
17231 // Does not recurse.
17232 remap(map) {
17233 this.forEach(particle => {

Callers 1

renameMethod · 0.95

Calls 4

indexOfMethod · 0.95
_getSubparticlesArrayMethod · 0.95
_clearCueIndexMethod · 0.95
setCueMethod · 0.80

Tested by

no test coverage detected