mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-30 06:21:19 +00:00
Merge pull request #159 from benpate/pullrequest-closeconnections
Close connections on swapInnerHTML
This commit is contained in:
commit
853ef2c05a
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user