v0.2.92
This commit is contained in:
1 parent
5cb6960b04
commit
0d7ffea17a
13 files changed
+17
-135
No files matched your search
@@ -4,9 +4,6 @@
|
||||
* See LICENSE.md for terms.
|
||||
*/
|
||||
|
||||
// Preserve existing nodes. Remove stale entries first: otherwise deleting a
|
||||
// user near the start of a 1000-person list would move every following node.
|
||||
// `desired` must contain each node at most once.
|
||||
export function reconcileChildren(container, desired) {
|
||||
const retained = new Set(desired);
|
||||
for (const node of [...container.childNodes]) {
|
||||
|
||||
Reference in new issue
Block a user