mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 12:07:39 +08:00
refactor: use isTrue
This commit is contained in:
parent
cf1ff5b0dc
commit
f15c56b45c
@ -132,7 +132,7 @@ function applyNS (vnode, ns, force) {
|
||||
if (isDef(vnode.children)) {
|
||||
for (let i = 0, l = vnode.children.length; i < l; i++) {
|
||||
const child = vnode.children[i]
|
||||
if (isDef(child.tag) && (isUndef(child.ns) || force)) {
|
||||
if (isDef(child.tag) && (isUndef(child.ns) || isTrue(force))) {
|
||||
applyNS(child, ns, force)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user