fix filtering

This commit is contained in:
Kevin Jahns
2018-04-26 16:01:17 +02:00
parent e788ad1333
commit 99f92cb9a0
3 changed files with 40 additions and 8 deletions

View File

@@ -54,7 +54,14 @@ export function createAssociation (domBinding, dom, type) {
* @private
*/
export function insertDomElementsAfter (type, prev, doms, _document, binding) {
return type.insertAfter(prev, doms.map(dom => domToType(dom, _document, binding)))
const types = []
for (let dom of doms) {
const t = domToType(dom, _document, binding)
if (t !== false) {
types.push(t)
}
}
return type.insertAfter(prev, types)
}
/**