Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// 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);
}
});
});
};
module.exports = connect.tag;
// Append the resulting document fragment to the element
can.appendChild(el, frag);
// update the nodeList with the new children so the mapping gets applied
can.view.nodeLists.update(nodeList, el.childNodes);
// add to pageData
can.one.call(el, 'removed', function() {
can.view.nodeLists.unregister(nodeList);
});
});
};
module.exports = connect.tag;