refactor: use isTrue

This commit is contained in:
Evan You 2017-10-02 17:37:42 -04:00
parent cf1ff5b0dc
commit f15c56b45c

View File

@ -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)
}
}