diff --git a/src/platforms/web/runtime/transition-util.js b/src/platforms/web/runtime/transition-util.js index 4883cd6f..416d72cf 100644 --- a/src/platforms/web/runtime/transition-util.js +++ b/src/platforms/web/runtime/transition-util.js @@ -131,6 +131,10 @@ export function getTransitionInfo (el: Element, expectedType?: ?string): { } function getTimeout (delays: Array, durations: Array): number { + while (delays.length < durations.length) { + delays = delays.concat(delays) + } + return Math.max.apply(null, durations.map((d, i) => { return toMs(d) + toMs(delays[i]) }))