MCPcopy Create free account
hub / github.com/electerious/basicSlider / _prev

Function _prev

src/scripts/main.js:239–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237
238 // Navigate to the previous slide
239 const _prev = () => {
240
241 // Store old index before modifying the counter
242 const oldIndex = c()
243 const newIndex = c(-1)
244
245 _goto(newIndex, oldIndex)
246
247 }
248
249 // Navigate to the next slide
250 const _next = () => {

Callers

nothing calls this directly

Calls 1

_gotoFunction · 0.85

Tested by

no test coverage detected