From 93e67c8acd2c2f30d95596ed6ede8b78fce06d60 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 29 Sep 2017 14:29:00 +0800 Subject: [PATCH] refactor: remove unnecessary condition --- src/platforms/web/runtime/components/transition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/web/runtime/components/transition.js b/src/platforms/web/runtime/components/transition.js index 60b434cdced..857c88f35e5 100644 --- a/src/platforms/web/runtime/components/transition.js +++ b/src/platforms/web/runtime/components/transition.js @@ -165,7 +165,7 @@ export default { ) { // replace old child transition data with fresh one // important for dynamic transitions! - const oldData: Object = oldChild && (oldChild.data.transition = extend({}, data)) + const oldData: Object = oldChild.data.transition = extend({}, data) // handle transition mode if (mode === 'out-in') { // return placeholder node and queue update when leave finishes