Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifier separation refactorings #123

Merged
merged 15 commits into from Dec 12, 2017

Conversation

mariusmuja
Copy link
Collaborator

@mariusmuja mariusmuja commented Dec 11, 2017

On top of #120, I did some more refactoring to the modifier separation, so that there's a single fold over all the VDomModifier_ elements in a VTree. I've tried to keep the hierarchy created during the modifier separation mirror closely the VDomModifier_ hierarchy, so that the code is easy to follow.

Also, I've moved the logic that creates the Snabbdom data structures to a different file (Snabbdom.scala) and removed outwatch dependencies from the snabbdom package, makes fixing #73 easy.

Moved DomUtils.render to OutWatch object, fixes #70, fixes #74.

@cornerman
Copy link
Member

Very nice work on the separation!

mariusmuja added a commit to mariusmuja/outwatch that referenced this pull request Dec 11, 2017
@cornerman
Copy link
Member

Are we ready to merge this?

@mariusmuja
Copy link
Collaborator Author

I was waiting for a second review before merging it.
@fdietze @LukaJCB

mariusmuja added a commit to mariusmuja/outwatch that referenced this pull request Dec 12, 2017
Copy link
Member

@fdietze fdietze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great refactoring. It makes the code much simpler.

@fdietze fdietze merged commit d269bb5 into outwatch:master Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow OutWatch.render(document.body, ...) Provide DomUtils.renderReplace()
3 participants