Skip to content

Commit

Permalink
feat: 增强 templates 判断逻辑 (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
yenshih committed Apr 2, 2019
1 parent a519714 commit 1ee786f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/mip/src/util/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ class Templates {
if (!element || element.nodeType !== 1) {
return console.error('Template parent element must be a node element')
}
if (element.tagName === 'TEMPLATE') {
return element
}
let templateId = element.getAttribute('template')
let template

Expand Down

0 comments on commit 1ee786f

Please sign in to comment.