MCPcopy Create free account
hub / github.com/ygs-code/vue / getTimeout

Function getTimeout

vue.js:11115–11127  ·  view source on GitHub ↗
(delays, durations)

Source from the content-addressed store, hash-verified

11113 }
11114
11115 function getTimeout(delays, durations) {
11116 console.log(delays)
11117 console.log(durations)
11118 debugger
11119 /* istanbul ignore next */
11120 while (delays.length < durations.length) {
11121 delays = delays.concat(delays);
11122 }
11123
11124 return Math.max.apply(null, durations.map(function (d, i) {
11125 return toMs(d) + toMs(delays[i])
11126 }))
11127 }
11128
11129 function toMs(s) {
11130 return Number(s.slice(0, -1)) * 1000

Callers 1

getTransitionInfoFunction · 0.85

Calls 1

toMsFunction · 0.85

Tested by

no test coverage detected