From 067648eddd01eb6615dedc1c6f4642d3655d0323 Mon Sep 17 00:00:00 2001 From: Alex Ivasyuv Date: Wed, 30 May 2018 23:00:06 +0300 Subject: [PATCH] fixed #7444 --- src/platforms/web/runtime/transition-util.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platforms/web/runtime/transition-util.js b/src/platforms/web/runtime/transition-util.js index 47668f0c37d..932c9847ccf 100644 --- a/src/platforms/web/runtime/transition-util.js +++ b/src/platforms/web/runtime/transition-util.js @@ -122,11 +122,11 @@ export function getTransitionInfo (el: Element, expectedType?: ?string): { hasTransform: boolean; } { const styles: any = window.getComputedStyle(el) - const transitionDelays: Array = styles[transitionProp + 'Delay'].split(', ') - const transitionDurations: Array = styles[transitionProp + 'Duration'].split(', ') + const transitionDelays: Array = (styles[transitionProp + 'Delay'] || '').split(', ') + const transitionDurations: Array = (styles[transitionProp + 'Duration'] || '').split(', ') const transitionTimeout: number = getTimeout(transitionDelays, transitionDurations) - const animationDelays: Array = styles[animationProp + 'Delay'].split(', ') - const animationDurations: Array = styles[animationProp + 'Duration'].split(', ') + const animationDelays: Array = (styles[animationProp + 'Delay'] || '').split(', ') + const animationDurations: Array = (styles[animationProp + 'Duration'] || '').split(', ') const animationTimeout: number = getTimeout(animationDelays, animationDurations) let type: ?string