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

Function getTimeout

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

Source from the content-addressed store, hash-verified

6348}
6349
6350function getTimeout (delays, durations) {
6351 /* istanbul ignore next */
6352 while (delays.length < durations.length) {
6353 delays = delays.concat(delays);
6354 }
6355
6356 return Math.max.apply(null, durations.map(function (d, i) {
6357 return toMs(d) + toMs(delays[i])
6358 }))
6359}
6360
6361function toMs (s) {
6362 return Number(s.slice(0, -1)) * 1000

Callers 1

getTransitionInfoFunction · 0.70

Calls 1

toMsFunction · 0.70

Tested by

no test coverage detected