From 63dd9d32e3666ee44273e2145a554b88315cb615 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 28 Jul 2016 12:49:50 -0400 Subject: [PATCH] remove transition text node warn because the wrapped component may return empty nodes --- src/platforms/web/runtime/components/transition.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/platforms/web/runtime/components/transition.js b/src/platforms/web/runtime/components/transition.js index 8b0b31f9..d3295296 100644 --- a/src/platforms/web/runtime/components/transition.js +++ b/src/platforms/web/runtime/components/transition.js @@ -47,18 +47,8 @@ export default { return } - // warn text nodes - if (process.env.NODE_ENV !== 'production' && - children.length === 1 && !children[0].tag) { - warn( - ' can only be used on elements or components, not text nodes.', - this.$parent - ) - } - // filter out text nodes (possible whitespaces) children = children.filter(c => c.tag) - if (!children.length) { return }