MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getTimeout

Function getTimeout

static/vuejs/vue.runtime.common.js:5902–5911  ·  view source on GitHub ↗
(delays, durations)

Source from the content-addressed store, hash-verified

5900}
5901
5902function getTimeout (delays, durations) {
5903 /* istanbul ignore next */
5904 while (delays.length < durations.length) {
5905 delays = delays.concat(delays);
5906 }
5907
5908 return Math.max.apply(null, durations.map(function (d, i) {
5909 return toMs(d) + toMs(delays[i])
5910 }))
5911}
5912
5913function toMs (s) {
5914 return Number(s.slice(0, -1)) * 1000

Callers 1

getTransitionInfoFunction · 0.70

Calls 1

toMsFunction · 0.70

Tested by

no test coverage detected