Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
el[canSymbol.for('can.viewModel')] = request;
var nodeList = nodeLists.register([], undefined, tagData.parentNodeList || true);
var frag = tagData.subtemplate ?
tagData.subtemplate( tagData.scope.add(request), tagData.options, nodeList ) :
document.createDocumentFragment();
// Append the resulting document fragment to the element
domMutateNode.appendChild.call(el, frag);
// update the nodeList with the new children so the mapping gets applied
nodeLists.update(nodeList, el.childNodes);
var removalDisposal = domMutate.onNodeRemoval(el, function () {
if (!el.ownerDocument.contains(el)) {
removalDisposal();
nodeLists.unregister(nodeList);
}
});
});
};