Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hdom): generalize diffElement() (#4)
- add HDOMOps interface - add DEFAULT_OPS implementation - update diffElement() & diffAttributes() to delegate to ops - refactor diffElement() to be more legible - update createDOM(), add support for `__ops` node attrib to use custom ops for subtrees - add getChild(), replaceChild(), setContent()
- Loading branch information
1 parent
5cb4350
commit 525d90d
Showing
3 changed files
with
130 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters