mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +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);
|
insertNodesBefore(target, firstChild, fragment, settleInfo);
|
||||||
if (firstChild) {
|
if (firstChild) {
|
||||||
while (firstChild.nextSibling) {
|
while (firstChild.nextSibling) {
|
||||||
|
closeConnections(firstChild.nextSibling)
|
||||||
target.removeChild(firstChild.nextSibling);
|
target.removeChild(firstChild.nextSibling);
|
||||||
}
|
}
|
||||||
|
closeConnections(firstChild)
|
||||||
target.removeChild(firstChild);
|
target.removeChild(firstChild);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user