Skip to content

Commit

Permalink
Remove idset changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelWest22 authored Feb 1, 2025
1 parent be113dc commit 588c9ff
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/idiomorph.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,26 +535,6 @@ var Idiomorph = (function () {
return cursor;
}

/**
* @param {Node | null} node - node being removed from consideration
* @param {string} id - The ID of the element to be moved.
* @param {MorphContext} ctx
*/
function removeIdFromMap(node, id, ctx) {
while (node) {
let idSet = ctx.idMap.get(node);
if(idSet) {
idSet?.delete(id);
if (idSet.size == 0) {
ctx.idMap.delete(node)
} else {
ctx.idMap.set(node,idSet);
}
}
node = node.parentNode;
}
}

/**
* Search for an element by id within the document and pantry, and move it using moveBefore.
*
Expand Down

0 comments on commit 588c9ff

Please sign in to comment.