Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ futureNodes = udomdiff(
parentNode, // where changes happen
[...currentNodes], // Array of current items/nodes
[...futureNodes], // Array of future items/nodes (returned)
get(node, toDoWhat), // a callback to retrieve the node
get, // (node, toDoWhat) => node // a callback to retrieve the node
before // the anchored node to insertBefore
);
```
Expand All @@ -30,7 +30,7 @@ You can find all info from [domdiff](https://github.com/WebReflection/domdiff#a-
* `get(node, -0)` to get the node to use for an `insertAfter` operation
* `get(node, -1)` to retrieve the node that's being removed

If you don't care about any of those second arguments values, `const get = o => o;` is a valid get too.
If you don't care about any of those second arguments values, `o => o;` is a valid `get` too.


### How to import it:
Expand Down
Loading