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

Function getTimeout

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

Source from the content-addressed store, hash-verified

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

Callers 1

getTransitionInfoFunction · 0.70

Calls 1

toMsFunction · 0.70

Tested by

no test coverage detected