Skip to content

Commit 163994c

Browse files
committed
allow empty template (close #3212)
1 parent b3a43ee commit 163994c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compiler/transclude.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ function transcludeTemplate (el, options) {
7474
var frag = parseTemplate(template, true)
7575
if (frag) {
7676
var replacer = frag.firstChild
77+
if (!replacer) {
78+
return frag
79+
}
7780
var tag = replacer.tagName && replacer.tagName.toLowerCase()
7881
if (options.replace) {
7982
/* istanbul ignore if */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy