Merge pull request #159 from benpate/pullrequest-closeconnections

Close connections on swapInnerHTML
This commit is contained in:
1cg 2020-09-01 18:06:27 -07:00 committed by GitHub
commit 853ef2c05a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -522,8 +522,10 @@ return (function () {
insertNodesBefore(target, firstChild, fragment, settleInfo);
if (firstChild) {
while (firstChild.nextSibling) {
closeConnections(firstChild.nextSibling)
target.removeChild(firstChild.nextSibling);
}
closeConnections(firstChild)
target.removeChild(firstChild);
}
}